ulasoft/pay-uz

Payment: Click, Payme, Uzcard, Visa

1.7.2 2019-04-11 14:57 UTC

This package is auto-updated.

Last update: 2024-10-26 22:02:56 UTC


README

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.