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

Add Jibit Gateway #218

Merged
merged 1 commit into from
Jan 29, 2024
Merged

Add Jibit Gateway #218

merged 1 commit into from
Jan 29, 2024

Conversation

shdehnavi
Copy link
Contributor

@shdehnavi shdehnavi commented Jan 28, 2024

Introduced Jibit driver to the package.

The driver is using a file cache utility class for enhanced performance and security by caching access and refresh tokens, as detailed in the Jibit documentation linked below:
https://napi.jibit.ir/ppg/v3/static/docs/index.html#jwt_access_tokens

  • Tested in real-world scenarios.
  • Code style fixed.

config/payment.php Outdated Show resolved Hide resolved
src/Drivers/Jibit/JibitClient.php Outdated Show resolved Hide resolved
src/Drivers/Jibit/JibitFileCache.php Outdated Show resolved Hide resolved
@shdehnavi
Copy link
Contributor Author

@khanzadimahdi
All mentioned issues have been resolved and all commits squashed into one commit.

@bahramsadin
Copy link
Contributor

سلام
لطفا currency هم اگه میشه به کانفیگ اضافه کنید تا کاربر متوجه واحد پولی هم بشه مثل درگاه های به پرداخت یا دیجی‌پی یا ...
'currency' => 'T', //Can be R, T (Rial, Toman)
توی کد هم قبل انتقال به بانک و تایید، به واحد مورد نظر تبدیل کنید
ممنون

@khanzadimahdi
Copy link
Member

khanzadimahdi commented Jan 29, 2024

سلام لطفا currency هم اگه میشه به کانفیگ اضافه کنید تا کاربر متوجه واحد پولی هم بشه مثل درگاه های به پرداخت یا دیجی‌پی یا ... 'currency' => 'T', //Can be R, T (Rial, Toman) توی کد هم قبل انتقال به بانک و تایید، به واحد مورد نظر تبدیل کنید ممنون

@shdehnavi I will merge this PR. it would be great if you add this suggested improvements.

you can also add the gateway name to this list: https://github.com/shetabit/payment

@khanzadimahdi khanzadimahdi merged commit d149490 into shetabit:master Jan 29, 2024
2 checks passed
@bahramsadin
Copy link
Contributor

@khanzadimahdi
پکیج "chillerlan/php-cache": "4.0", که در این pr اضافه شده از php7.4 فقط پشتیبانی و در نتیجه امکان آپدیت پروژه هایی که با php8 یا بالاتر نوشته شده به این ورژن جدید نیست
در کل هم فکر نمیکنم کلا پکیج جالبی باشه و اگه از یه پکیج جایگزین استفاده بشه بهتره چون ورژن آخرش هم مثلا فقط از ^7.4 || ^8.0 استفاده میکنه باز نسخه های بالاتر به مشکل میخورن....

Screenshot 2024-01-29 221954

@shdehnavi
Copy link
Contributor Author

سلام لطفا currency هم اگه میشه به کانفیگ اضافه کنید تا کاربر متوجه واحد پولی هم بشه مثل درگاه های به پرداخت یا دیجی‌پی یا ... 'currency' => 'T', //Can be R, T (Rial, Toman) توی کد هم قبل انتقال به بانک و تایید، به واحد مورد نظر تبدیل کنید ممنون

I'll add in another PR, Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants