goodoneuz / pay-uz
Payment: Click, Payme, Uzcard, Visa
Installs: 2 613
Dependents: 0
Suggesters: 0
Security: 0
Stars: 78
Watchers: 14
Forks: 39
Open Issues: 1
Requires
- php: ^7.1|^8.0
- illuminate/support: *
- stripe/stripe-php: *
Requires (Dev)
- orchestra/testbench: 3.7.*|^6.2
- phpunit/phpunit: ^7.0|^9.3.3
- dev-master
- 2.2.23
- 2.2.22
- 2.2.21
- 2.2.20
- 2.2.19
- 2.2.18
- 2.2.17
- 2.2.16
- 2.2.15
- 2.2.14
- 2.2.13
- 2.2.12
- 2.2.11
- 2.2.10
- 2.2.9
- 2.2.8
- 2.2.7
- 2.2.6
- 2.2.5
- 2.2.4
- 2.2.3
- 2.2.2
- 2.2.1
- 2.2
- 2.1.1
- 2.1
- 2.0.3
- 2.0.2
- 2.0.1
- 2.0
- 1.7.4
- 1.7.3
- 1.7.2
- 1.7.1
- 1.7.0
- 1.6.6
- 1.6.5
- 1.6.4
- 1.6.3
- 1.6.2
- 1.6.1
- 1.6
- 1.4
- 1.3
- 1.1
- 1.0
- dev-multi-merchant
This package is auto-updated.
Last update: 2024-11-04 14:23:04 UTC
README
Featured
- Payme - Merchant
- Click - Merchant
- Oson - Merchant
- Uzcard - Merchant
- Paynet - Merchant
- Stripe - Merchant(Subscribe)
По умолчанию для оплаты установлен "накопительный режим". Чтобы производить оплату в "Одноразовом режиме", вам необходимо изменить параметр в config/payuz.php 'multi_transaction' => false
Planned
- Upay
- Visa
Installation
You can install the package via composer:
composer require goodoneuz/pay-uz
Publishing required files of package:
php artisan vendor:publish --provider="Goodoneuz\PayUz\PayUzServiceProvider"
Migrate tables:
php artisan migrate
Seed settings:
php artisan db:seed --class="Goodoneuz\PayUz\database\seeds\PayUzSeeder"
Usage
Placing routes for service in web.php
//handle requests from payment system Route::any('/handle/{paysys}',function($paysys){ (new Goodoneuz\PayUz\PayUz)->driver($paysys)->handle(); }); //redirect to payment system or payment form Route::any('/pay/{paysys}/{key}/{amount}',function($paysys, $key, $amount){ $model = Goodoneuz\PayUz\Services\PaymentService::convertKeyToModel($key); $url = request('redirect_url','/'); // redirect url after payment completed $pay_uz = new Goodoneuz\PayUz\PayUz; $pay_uz ->driver($paysys) ->redirect($model, $amount, 860, $url); });
Exception:
PaymentException
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email shaxzodbek.qambaraliyev@gmail.com instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.