Skip to content

Commit

Permalink
added jibit driver (shetabit#218)
Browse files Browse the repository at this point in the history
  • Loading branch information
shdehnavi authored Jan 29, 2024
1 parent 07e3f04 commit d149490
Show file tree
Hide file tree
Showing 8 changed files with 658 additions and 3 deletions.
1 change: 1 addition & 0 deletions README-FA.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@
- [دیجی‌پی](https://www.mydigipay.com/) :heavy_check_mark:
- [فن‌آوا‌کارت](https://www.fanava.com/) :heavy_check_mark:
- [لوکال](#local-driver) :heavy_check_mark:
- [جیبیت](https://jibit.ir/) :heavy_check_mark:
- [نکست‌پی](https://nextpay.ir/) :heavy_check_mark:
- [پارسیان](https://www.pec.ir/) :heavy_check_mark:
- [پاسارگاد](https://bpi.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 @@ -59,6 +59,7 @@ For **Laravel** integration you can use [shetabit/payment](https://github.com/sh
- [idpay](https://idpay.ir/) :heavy_check_mark:
- [irankish](http://irankish.com/) :heavy_check_mark:
- [local](#local-driver) :heavy_check_mark:
- [jibit](https://jibit.ir/) :heavy_check_mark:
- [nextpay](https://nextpay.ir/) :heavy_check_mark:
- [omidpay](https://sayancard.ir/) :heavy_check_mark:
- [parsian](https://www.pec.ir/) :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 @@ -57,6 +57,7 @@ For **Laravel** integration you can use [shetabit/payment](https://github.com/sh
- [idpay](https://idpay.ir/) :heavy_check_mark:
- [irankish](http://irankish.com/) :heavy_check_mark:
- [local](#local-driver) :heavy_check_mark:
- [jibit](https://jibit.ir/) :heavy_check_mark:
- [nextpay](https://nextpay.ir/) :heavy_check_mark:
- [omidpay](https://omidpayment.ir/) :heavy_check_mark:
- [parsian](https://www.pec.ir/) :heavy_check_mark:
Expand Down
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,9 @@
],
"require": {
"php": ">=7.2",
"nesbot/carbon": "^1.39|^2.0",
"chillerlan/php-cache": "4.0",
"guzzlehttp/guzzle": ">=6.2",
"nesbot/carbon": "^1.39|^2.0",
"ramsey/uuid": "^3.7|^3.8|^3.9|^4.0"
},
"require-dev": {
Expand Down
228 changes: 226 additions & 2 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions config/payment.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,16 @@
'pubKey' => '',
'currency' => 'T', //Can be R, T (Rial, Toman)
],
'jibit' => [
'apiPaymentUrl' => 'https://napi.jibit.ir/ppg/v3',
'apiKey' => '',
'secretKey' => '',
// You can change the token storage path in Laravel like this
// 'tokenStoragePath' => function_exists('storage_path') ? storage_path('jibit/') : 'jibit/'
'tokenStoragePath' => 'jibit/',
'callbackUrl' => 'http://yoursite.com/path/to',
'description' => 'payment using jibit',
],
'nextpay' => [
'apiPurchaseUrl' => 'https://nextpay.org/nx/gateway/token',
'apiPaymentUrl' => 'https://nextpay.org/nx/gateway/payment/',
Expand Down Expand Up @@ -432,6 +442,7 @@
'etebarino' => \Shetabit\Multipay\Drivers\Etebarino\Etebarino::class,
'idpay' => \Shetabit\Multipay\Drivers\Idpay\Idpay::class,
'irankish' => \Shetabit\Multipay\Drivers\Irankish\Irankish::class,
'jibit' => \Shetabit\Multipay\Drivers\Jibit\Jibit::class,
'nextpay' => \Shetabit\Multipay\Drivers\Nextpay\Nextpay::class,
'omidpay' => \Shetabit\Multipay\Drivers\Omidpay\Omidpay::class,
'parsian' => \Shetabit\Multipay\Drivers\Parsian\Parsian::class,
Expand Down
Loading

0 comments on commit d149490

Please sign in to comment.