-
-
Couldn't load subscription status.
- Fork 89
Checkout Payment
Shipu Ahamed edited this page Sep 29, 2019
·
3 revisions
$checkout initialization here.
In laravel use Shipu\Bkash\Facades\Checkout instead of $checkout if you want.
$payerReference = 'your payerReference';
$callbackUrl = 'merchant callback url';
$checkout->payment()->create( $amount, $merchantInvoiceNumber, $intent, $currency, $merchantAssociationInfo );
or
$checkout->createPayment( $amount, $merchantInvoiceNumber, $intent, $currency, $merchantAssociationInfo );$intent, $currency and $merchantAssociationInfo is optional. $intent default value sale and $currency default value BDT.
$checkout->payment()->execute($paymentId);
or
$checkout->executePayment($paymentId);you can get $paymentId after create payment call.
$checkout->payment()->capture($paymentId);
or
$checkout->capturePayment($paymentId);you can get $paymentId after execute payment call.
$checkout->payment()->queryPayment($paymentId);
or
$checkout->queryPayment($paymentId);you can get $paymentId after execute payment call.
$checkout->payment()->void($paymentId);
or
$checkout->voidPayment($paymentId);you can get $paymentId after execute payment call.