makkapoya / pay-uz-tenancy
Payment: Click, Payme, Uzcard, Visa
0.2.2
2023-07-25 11:02 UTC
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
README
Featured
- Payme - Merchant
- Click - Merchant
- Oson - Merchant
- Uzcard - Merchant
- Paynet - Merchant
- Stripe - Merchant(Subscribe)
Planned
- Upay
- Visa
Installation
You can install the package via composer:
composer require makkapoya/pay-uz
Publishing required files of package:
php artisan vendor:publish --provider="Makkapoya\PayUz\PayUzServiceProvider"
Migrate tables:
php artisan migrate
Seed settings:
php artisan db:seed --class="Makkapoya\PayUz\database\seeds\PayUzSeeder"
Usage
Placing routes for service in web.php
//handle requests from payment system Route::any('/handle/{paysys}',function($paysys){ (new Makkapoya\PayUz\PayUz)->driver($paysys)->handle(); }); //redirect to payment system or payment form Route::any('/pay/{paysys}/{key}/{amount}',function($paysys, $key, $amount){ $model = Makkapoya\PayUz\Services\PaymentService::convertKeyToModel($key); $url = request('redirect_url','/'); // redirect url after payment completed $pay_uz = new Makkapoya\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 samixgroupedia@gmail.com instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.