raad/payment-gateway

it is a test payment gateway


License
MIT

Documentation

new_pg

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 ->

  1. cus_name,
  2. cus_email,
  3. cus_phone,
  4. currency ,
  5. amount ,
  6. store_id(Provided by aamarpay) ,
  7. 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.