Skip to content

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.

Create Payment (Sale or Authorize)

$payment->checkout()->create( $amount, $merchantInvoiceNumber, $intent, $currency );

or 

$payment->createCheckout( $amount, $merchantInvoiceNumber, $intent, $currency );

$intent, $currency optional.

Execute Payment

$payment->checkout()->execute($paymentId);

or 

$payment->executeCheckout($paymentId);

you can get $paymentId after create payment call.

Capture

$payment->checkout()->capture($paymentId);

or 

$payment->captureCheckout($paymentId);

you can get $paymentId after execute payment call.

Query Payment

$payment->checkout()->queryPayment($paymentId);

or 

$payment->queryCheckout($paymentId);

you can get $paymentId after execute payment call.

Void Payment

$payment->checkout()->void($paymentId);

or 

$payment->voidCheckout($paymentId);

you can get $paymentId after execute payment call.