Skip to content

Commit

Permalink
Add Snapp Pay driver (#246)
Browse files Browse the repository at this point in the history
* [feat] add config of SnappPay

* [feat] update readme

* [feat] add diriver of snappPay

* [style]

* [wip]

* [fix] fix normalizerCartList method with gateway accepted structure

* [feat] implement method verify, settle, revert, status, cancel, update

* [style]

* [fix] fix requests

* [fix] fix methods
  • Loading branch information
alissn authored Jul 11, 2024
1 parent 76d0c6b commit b8ef24a
Show file tree
Hide file tree
Showing 5 changed files with 468 additions and 0 deletions.
1 change: 1 addition & 0 deletions README-FA.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@
- [سپهر (صادرات)](https://www.sepehrpay.com/) :heavy_check_mark:
- [سپرده](https://sepordeh.com/) :heavy_check_mark:
- [سیزپی](https://www.sizpay.ir/) :heavy_check_mark:
- [اسنپ‌پی](https://snapppay.ir/) :heavy_check_mark:
- [تومن](https://tomanpay.net/) :heavy_check_mark:
- [وندار](https://vandar.io/) :heavy_check_mark:
- [والتا](https://walleta.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 @@ -81,6 +81,7 @@ For **Laravel** integration you can use [shetabit/payment](https://github.com/sh
- [sepordeh](https://sepordeh.com/) :heavy_check_mark:
- [sizpay](https://www.sizpay.ir/) :heavy_check_mark:
- [toman](https://tomanpay.net/) :heavy_check_mark:
- [snapppay](https://snapppay.ir/) :heavy_check_mark:
- [vandar](https://vandar.io/) :heavy_check_mark:
- [walleta (Installment payment)](https://walleta.ir/) :heavy_check_mark:
- [yekpay](https://yekpay.com/) :heavy_check_mark:
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ For **Laravel** integration you can use [shetabit/payment](https://github.com/sh
- [sepehr (saderat)](https://www.sepehrpay.com/) :heavy_check_mark:
- [sepordeh](https://sepordeh.com/) :heavy_check_mark:
- [sizpay](https://www.sizpay.ir/) :heavy_check_mark:
- [snapppay](https://snapppay.ir/) :heavy_check_mark:
- [toman](https://tomanpay.net/) :heavy_check_mark:
- [vandar](https://vandar.io/) :heavy_check_mark:
- [walleta (Installment payment)](https://walleta.ir/) :heavy_check_mark:
Expand Down
11 changes: 11 additions & 0 deletions config/payment.php
Original file line number Diff line number Diff line change
Expand Up @@ -434,6 +434,16 @@
'description' => 'payment using Minipay.',
'currency' => 'T', //Can be R, T (Rial, Toman)
],
'snapppay' => [
'apiPaymentUrl' => 'https://fms-gateway-staging.apps.public.teh-1.snappcloud.io',
'callbackUrl' => 'http://yoursite.com/path/to',
'username' => 'username',
'password' => 'password',
'client_id' => '',
'client_secret' => '',
'description' => 'payment using Snapp Pay.',
'currency' => 'T', //Can be R, T (Rial, Toman)
],
],

/*
Expand Down Expand Up @@ -487,5 +497,6 @@
'toman' => \Shetabit\Multipay\Drivers\Toman\Toman::class,
'bitpay' => \Shetabit\Multipay\Drivers\Bitpay\Bitpay::class,
'minipay' => \Shetabit\Multipay\Drivers\Minipay\Minipay::class,
'snapppay'=> \Shetabit\Multipay\Drivers\SnappPay\SnappPay::class,
]
];
Loading

0 comments on commit b8ef24a

Please sign in to comment.