phyowailinn/payment is a Laravel package for this demo package for dynamic payment gateway.
It currently has 1 GitHub stars and 184 downloads on Packagist.
Install it with composer require phyowailinn/payment.
Discover more Laravel packages by phyowailinn
or browse all Laravel packages to compare alternatives.
Last updated
Require this package in your composer.json and update composer.
composer require phyowailinn/payment
After updating composer, add the ServiceProvider to the providers array in config/app.php
Phyowailinn\Payment\PaymentGatewayServiceProvider::class,
You can optionally use the facade for shorter code. Add this to your facades:
'Gateway' => Phyowailinn\Payment\Facades\Gateway::class,
Use the facade: use Phyowailinn\Payment\Facades\Gateway;
$result = Gateway::request();
return $result->verify($data);
Use php artisan vendor:publish to create a config file located at config/payment.php which will allow you to define local configurations to change some settings (default paper etc).
You can also use your ConfigProvider to set certain keys.
The defaults configuration settings are set in config/payment.php. Copy this file to your own config directory to modify the values. You can publish the config using this command:
php artisan vendor:publish --provider="Phyowailinn\Payment\PaymentGatewayServiceProvider"