Skip to content

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

License

Notifications You must be signed in to change notification settings

Fayozjon/pay-uz

 
 

Repository files navigation

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

Видео документация

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

//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 [email protected] instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

About

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

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 41.0%
  • HTML 36.6%
  • JavaScript 12.8%
  • CSS 9.6%