-
-
Notifications
You must be signed in to change notification settings - Fork 86
Payment Checkout
Shipu Ahamed edited this page Sep 29, 2019
·
2 revisions
$payment
initialization here.
In laravel use Shipu\Bkash\Facades\Payment
instead of $payment
if you want.
$payment->checkout()->create( $amount, $merchantInvoiceNumber, $intent, $currency );
or
$payment->createCheckout( $amount, $merchantInvoiceNumber, $intent, $currency );
$intent
, $currency
optional.
$payment->checkout()->execute($paymentId);
or
$payment->executeCheckout($paymentId);
you can get $paymentId
after create payment call.
$payment->checkout()->capture($paymentId);
or
$payment->captureCheckout($paymentId);
you can get $paymentId
after execute payment call.
$payment->checkout()->queryPayment($paymentId);
or
$payment->queryCheckout($paymentId);
you can get $paymentId
after execute payment call.
$payment->checkout()->void($paymentId);
or
$payment->voidCheckout($paymentId);
you can get $paymentId
after execute payment call.