Skip to content

Commit

Permalink
Merge pull request #2 from hsharghi/local-driver-copy
Browse files Browse the repository at this point in the history
fix Behpardakht receipt data
  • Loading branch information
hsharghi authored Aug 1, 2021
2 parents 33b6844 + e55111b commit c7b25cb
Show file tree
Hide file tree
Showing 22 changed files with 1,681 additions and 395 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,8 @@ Temporary Items
# VSCode project's cache
.vscode

# phpunit cache
.phpunit.result.cache

# Vendor directory
vendor/
14 changes: 11 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
language: php

php:
- '7.2'
- '7.3'
before_script: composer install
- 7.2
- 7.3
- 7.4

before_script:
- travis_retry composer self-update
- travis_retry composer update
- travis_retry composer install --prefer-source --no-interaction --dev

script: phpunit
2 changes: 2 additions & 0 deletions README-FA.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@

- [اسان پرداخت](https://asanpardakht.ir/) :heavy_check_mark:
- [به‌پرداخت (mellat)](http://www.behpardakht.com/) :heavy_check_mark:
- [دیجی پی](https://www.mydigipay.com/) :heavy_check_mark:
- [ایدی پی](https://idpay.ir/) :heavy_check_mark:
- [ایرانکیش](http://irankish.com/) :heavy_check_mark:
- [نکست پی](https://nextpay.ir/) :heavy_check_mark:
Expand All @@ -65,6 +66,7 @@
- [سداد (بانک ملی)](https://sadadpsp.ir/) :heavy_check_mark:
- [سامان](https://www.sep.ir) :heavy_check_mark:
- [سپهر (بانک صادرات)](https://www.sepehrpay.com/) :heavy_check_mark:
- [والتا (پرداخت اقساطی)](https://walleta.ir/) :heavy_check_mark:
- [یک پی](https://yekpay.com/) :heavy_check_mark:
- [زرین پال](https://www.zarinpal.com/) :heavy_check_mark:
- [زیبال](https://www.zibal.ir/) :heavy_check_mark:
Expand Down
1 change: 1 addition & 0 deletions README-ZH.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ For **Laravel** integration you can use [shetabit/payment](https://github.com/sh
# 可用驱动列表
- [asanpardakht](https://asanpardakht.ir/) :heavy_check_mark:
- [behpardakht (mellat)](http://www.behpardakht.com/) :heavy_check_mark:
- [digipay](https://www.mydigipay.com/) :heavy_check_mark:
- [idpay](https://idpay.ir/) :heavy_check_mark:
- [irankish](http://irankish.com/) :heavy_check_mark:
- [nextpay](https://nextpay.ir/) :heavy_check_mark:
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ For **Laravel** integration you can use [shetabit/payment](https://github.com/sh
# List of available drivers
- [asanpardakht](https://asanpardakht.ir/) :heavy_check_mark:
- [behpardakht (mellat)](http://www.behpardakht.com/) :heavy_check_mark:
- [digipay](https://www.mydigipay.com/) :heavy_check_mark:
- [idpay](https://idpay.ir/) :heavy_check_mark:
- [irankish](http://irankish.com/) :heavy_check_mark:
- [nextpay](https://nextpay.ir/) :heavy_check_mark:
Expand All @@ -63,6 +64,7 @@ For **Laravel** integration you can use [shetabit/payment](https://github.com/sh
- [sadad (melli)](https://sadadpsp.ir/) :heavy_check_mark:
- [saman](https://www.sep.ir) :heavy_check_mark:
- [sepehr (saderat)](https://www.sepehrpay.com/) :heavy_check_mark:
- [walleta (Installment payment)](https://walleta.ir/) :heavy_check_mark:
- [yekpay](https://yekpay.com/) :heavy_check_mark:
- [zarinpal](https://www.zarinpal.com/) :heavy_check_mark:
- [zibal](https://www.zibal.ir/) :heavy_check_mark:
Expand Down
33 changes: 25 additions & 8 deletions config/payment.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,11 @@
'cancelButton' => 'پرداخت ناموفق',
],
'asanpardakht' => [
'apiPurchaseUrl' => 'https://ipgsoap.asanpardakht.ir/paygate/merchantservices.asmx?wsdl',
'apiPaymentUrl' => 'https://asan.shaparak.ir',
'apiVerificationUrl' => 'https://ipgsoap.asanpardakht.ir/paygate/merchantservices.asmx?wsdl',
'apiUtilsUrl' => 'https://ipgsoap.asanpardakht.ir/paygate/internalutils.asmx?wsdl',
'key' => '',
'iv' => '',
'apiRestPaymentUrl' => 'https://ipgrest.asanpardakht.ir/v1/',
'username' => '',
'password' => '',
'merchantId' => '',
'merchantConfigID' => '',
'callbackUrl' => 'http://yoursite.com/path/to',
'description' => 'payment using asanpardakht',
],
Expand All @@ -55,6 +51,17 @@
'callbackUrl' => 'http://yoursite.com/path/to',
'description' => 'payment using behpardakht',
],
'digipay' => [
'apiOauthUrl' => 'https://api.mydigipay.com/digipay/api/oauth/token',
'apiPurchaseUrl' => 'https://api.mydigipay.com/digipay/api/businesses/ticket?type=0',
'apiPaymentUrl' => 'https://api.mydigipay.com/digipay/api/purchases/ipg/pay/',
'apiVerificationUrl' => 'https://api.mydigipay.com/digipay/api/purchases/verify/',
'username' => 'username',
'password' => 'password',
'client_id' => '',
'client_secret' => '',
'callbackUrl' => 'http://yoursite.com/path/to',
],
'idpay' => [
'apiPurchaseUrl' => 'https://api.idpay.ir/v1.1/payment',
'apiPaymentUrl' => 'https://idpay.ir/p/ws/',
Expand Down Expand Up @@ -176,6 +183,14 @@
'callbackUrl' => '',
'description' => 'payment using sepehr(saderat)',
],
'walleta' => [
'apiPurchaseUrl' => 'https://cpg.walleta.ir/payment/request.json',
'apiPaymentUrl' => 'https://cpg.walleta.ir/ticket/',
'apiVerificationUrl' => 'https://cpg.walleta.ir/payment/verify.json',
'merchantId' => '',
'callbackUrl' => 'http://yoursite.com/path/to',
'description' => 'payment using walleta',
],
'yekpay' => [
'apiPurchaseUrl' => 'https://gate.yekpay.com/api/payment/server?wsdl',
'apiPaymentUrl' => 'https://gate.yekpay.com/api/payment/start/',
Expand All @@ -188,9 +203,9 @@
],
'zarinpal' => [
/* normal api */
'apiPurchaseUrl' => 'https://ir.zarinpal.com/pg/services/WebGate/wsdl',
'apiPurchaseUrl' => 'https://api.zarinpal.com/pg/v4/payment/request.json',
'apiPaymentUrl' => 'https://www.zarinpal.com/pg/StartPay/',
'apiVerificationUrl' => 'https://ir.zarinpal.com/pg/services/WebGate/wsdl',
'apiVerificationUrl' => 'https://api.zarinpal.com/pg/v4/payment/verify.json',

/* sandbox api */
'sandboxApiPurchaseUrl' => 'https://sandbox.zarinpal.com/pg/services/WebGate/wsdl',
Expand Down Expand Up @@ -237,6 +252,7 @@
'local' => \Shetabit\Multipay\Drivers\Local\Local::class,
'asanpardakht' => \Shetabit\Multipay\Drivers\Asanpardakht\Asanpardakht::class,
'behpardakht' => \Shetabit\Multipay\Drivers\Behpardakht\Behpardakht::class,
'digipay' => \Shetabit\Multipay\Drivers\Digipay\Digipay::class,
'idpay' => \Shetabit\Multipay\Drivers\Idpay\Idpay::class,
'irankish' => \Shetabit\Multipay\Drivers\Irankish\Irankish::class,
'nextpay' => \Shetabit\Multipay\Drivers\Nextpay\Nextpay::class,
Expand All @@ -250,6 +266,7 @@
'sadad' => \Shetabit\Multipay\Drivers\Sadad\Sadad::class,
'saman' => \Shetabit\Multipay\Drivers\Saman\Saman::class,
'sepehr' => \Shetabit\Multipay\Drivers\Sepehr\Sepehr::class,
'walleta' => \Shetabit\Multipay\Drivers\Walleta\Walleta::class,
'yekpay' => \Shetabit\Multipay\Drivers\Yekpay\Yekpay::class,
'zarinpal' => \Shetabit\Multipay\Drivers\Zarinpal\Zarinpal::class,
'zibal' => \Shetabit\Multipay\Drivers\Zibal\Zibal::class,
Expand Down
14 changes: 6 additions & 8 deletions phpunit.xml
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit backupGlobals="false"
backupStaticAttributes="false"
<phpunit
bootstrap="vendor/autoload.php"
colors="true"
testdox="true"
backupGlobals="false"
backupStaticAttributes="false"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false">
<filter>
<whitelist>
<directory>./src/</directory>
</whitelist>
</filter>
stopOnFailure="false"
>
<testsuites>
<testsuite name="Test Suite">
<directory suffix="Test.php">./tests/</directory>
Expand Down
Loading

0 comments on commit c7b25cb

Please sign in to comment.