raad/payment-gateway

it is a test payment gateway

v0.1 2023-03-27 06:11 UTC

This package is auto-updated.

Last update: 2025-07-27 13:53:59 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 ->

  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.