ulasoft / pay-uz
Payment: Click, Payme, Uzcard, Visa
1.7.2
2019-04-11 14:57 UTC
Requires
- php: ^7.1
- illuminate/support: 5.7.*|5.8.*
- stripe/stripe-php: ^6.31
Requires (Dev)
- orchestra/testbench: 3.7.*
- phpunit/phpunit: ^7.0
This package is auto-updated.
Last update: 2024-10-26 22:02:56 UTC
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 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
//here comes requests from payment system Route::any('/handle/{paysys}',function($paysys){ PayUz::driver($paysys)->handle(); }); //here user redirects to payment system Route::any('/redirect/{paysys}/{user_id}/{amount}',function($paysys, $user_id, $amount){ $user = App\User::find($user_id); $url = 'https://payment.uz'; PayUz::driver($paysys)->redirect($user, $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.