raad / payment-gateway
it is a test payment gateway
v0.1
2023-03-27 06:11 UTC
README
aamarPay payment gateway package
Install it using this command -
composer require aamarpay/payment-gateway
add providers and aliases in your project config\app.php -
'providers' => [
Aamarpay\PaymentGateway\Providers\formProvider::class,
],
'aliases' => Facade::defaultAliases()->merge([
'aamarpay'=> Aamarpay\PaymentGateway\Providers\formProvider::class,
])->toArray(),
Create a form and hit the pay route it will redirect you to the Payment Gateway
Mandatory input field name ->
- cus_name,
- cus_email,
- cus_phone,
- currency ,
- amount ,
- store_id(Provided by aamarpay) ,
- signature_key(Provided by aamarpay)
Make 3 routes for successful payment,failed paymnet and canceled case in your project & named them 'success','fail','cancel'
declare this routes in App\http\Middleware\VerifyCsrfToken file.