Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V-2 #3

Open
wants to merge 26 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# ZarinPal SDK Configuration

# Base URL for production
ZARINPAL_BASE_URL=https://payment.zarinpal.com

# Base URL for sandbox/testing
ZARINPAL_SANDBOX_BASE_URL=https://sandbox.zarinpal.com

# Merchant ID for ZarinPal
ZARINPAL_MERCHANT_KEY=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx

# GraphQL URL for ZarinPal
ZARINPAL_GRAPHQL_URL=https://next.zarinpal.com/api/v4/graphql/

# Access token for authentication
ZARINPAL_ACCESS_TOKEN=

# Set to true to use the sandbox environment
ZARINPAL_SANDBOX=false
4 changes: 4 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
docs/* export-ignore
examples/* export-ignore
composer.lock export-ignore
README.md export-ignore
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[![Build Status](https://travis-ci.org/ZarinPal/zarinpal-php-sdk.svg?branch=master)](https://travis-ci.org/ZarinPal/zarinpal-php-sdk)
ZarinPal/zarinpal-php-sdk
======
## Installation*
#### Requirements:
- `php >= 7.4`

Run the Composer update command

$ composer require zarinpal/zarinpal-php-sdk
24 changes: 20 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,12 @@
"license": "MIT",
"autoload": {
"psr-4": {
"ZarinPal\\Sdk\\": "src"
"ZarinPal\\Sdk\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"Tests\\": "tests/"
}
},
"authors": [
Expand All @@ -16,6 +21,10 @@
{
"name": "Hooman Naghiee",
"email": "[email protected]"
},
{
"name": "Armin Zahedi",
"email": "[email protected]"
}
],
"minimum-stability": "stable",
Expand All @@ -25,13 +34,20 @@
"psr/http-client": "^1.0",
"php-http/client-common": "^2.5",
"php-http/discovery": "^1.14",
"ext-json": "*"
"ext-json": "*",
"ext-curl": "*",
"psr/http-client-implementation": "*",
"symfony/http-client": "^7.1",
"php-http/curl-client": "^2.2"
},
"require-dev": {
"php-http/curl-client": "^2.2",
"laminas/laminas-diactoros": "^2.17",
"phpstan/phpstan": "^1.8",
"phpunit/phpunit": "^9",
"php-http/mock-client": "^1.5"
},
"config": {
"allow-plugins": {
"php-http/discovery": true
}
}
}
Loading