1. Go to this page and download the library: Download shipu/php-aamarpay-payment library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
use \Shipu\Aamarpay\Aamarpay;
...
$payment = new Aamarpay(config('aamarpay'));
return $payment->generateTransaction();
use \Shipu\Aamarpay\Aamarpay;
...
$payment = new Aamarpay(config('aamarpay'));
return $payment->valid($request);
use \Shipu\Aamarpay\Aamarpay;
...
$payment = new Aamarpay(config('aamarpay'));
return $payment->valid($request, '3500');
{{ aamarpay_payment_url() }}
{!!
aamarpay_hidden_input([
'tran_id' => '21005455540', // random number. if you don't set this it will be auto generate.
'cus_name' => 'Shipu Ahamed', // Customer name
'cus_email' => '[email protected]', // Customer email
'cus_phone' => '01616022669' // Customer Phone
], 3500)
!!}
or
{!!
aamarpay_hidden_input([
'tran_id' => '21005455540', // random number. if you don't set this it will be auto generate.
'cus_name' => 'Shipu Ahamed', // Customer name
'cus_email' => '[email protected]', // Customer email
'cus_phone' => '01616022669' // Customer Phone
], 3500, 'T-shirt', 'BDT')
!!}