Skip to content

ulasoft/pay-uz

 
 

Для национальных платежных систем в Узбекистане

Latest Version on Packagist Build Status Quality Score

Featured

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.

About

No description, website, or topics provided.

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • PHP 42.8%
  • Blade 33.1%
  • JavaScript 13.8%
  • CSS 10.3%