Skip to content

Commit 252c6f7

Browse files
authored
Merge pull request #2 from ar4min/main
v-2
2 parents fb60034 + af304ad commit 252c6f7

36 files changed

+2169
-642
lines changed

.env.example

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# ZarinPal SDK Configuration
2+
3+
# Base URL for production
4+
ZARINPAL_BASE_URL=https://payment.zarinpal.com
5+
6+
# Base URL for sandbox/testing
7+
ZARINPAL_SANDBOX_BASE_URL=https://sandbox.zarinpal.com
8+
9+
# Merchant ID for ZarinPal
10+
ZARINPAL_MERCHANT_KEY=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
11+
12+
# GraphQL URL for ZarinPal
13+
ZARINPAL_GRAPHQL_URL=https://next.zarinpal.com/api/v4/graphql/
14+
15+
# Access token for authentication
16+
ZARINPAL_ACCESS_TOKEN=
17+
18+
# Set to true to use the sandbox environment
19+
ZARINPAL_SANDBOX=false
File renamed without changes.

composer.json

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,12 @@
55
"license": "MIT",
66
"autoload": {
77
"psr-4": {
8-
"ZarinPal\\Sdk\\": "src"
8+
"ZarinPal\\Sdk\\": "src/"
9+
}
10+
},
11+
"autoload-dev": {
12+
"psr-4": {
13+
"Tests\\": "tests/"
914
}
1015
},
1116
"authors": [
@@ -16,6 +21,10 @@
1621
{
1722
"name": "Hooman Naghiee",
1823
"email": "h.naghiee@zarinpal.com"
24+
},
25+
{
26+
"name": "Armin Zahedi",
27+
"email": "arminzahedi1999@zarinpal.com"
1928
}
2029
],
2130
"minimum-stability": "stable",
@@ -26,13 +35,19 @@
2635
"php-http/client-common": "^2.5",
2736
"php-http/discovery": "^1.14",
2837
"ext-json": "*",
29-
"psr/http-client-implementation": "*"
38+
"ext-curl": "*",
39+
"psr/http-client-implementation": "*",
40+
"symfony/http-client": "^7.1",
41+
"php-http/curl-client": "^2.2"
3042
},
3143
"require-dev": {
32-
"php-http/curl-client": "^2.2",
3344
"laminas/laminas-diactoros": "^2.17",
34-
"phpstan/phpstan": "^1.8",
3545
"phpunit/phpunit": "^9",
3646
"php-http/mock-client": "^1.5"
47+
},
48+
"config": {
49+
"allow-plugins": {
50+
"php-http/discovery": true
51+
}
3752
}
3853
}

0 commit comments

Comments
 (0)