Skip to content

Direct Payment

Shipu Ahamed edited this page Sep 29, 2019 · 2 revisions

$payment initialization here.

Sale or Authorize

$payment->direct()->saleOrAuthorize( $mandateId, $amount, $merchantInvoiceNumber, $payerReferenceNumber, $intent, $currency );

or 

$payment->saleOrAuthorize( $mandateId, $amount, $merchantInvoiceNumber, $payerReferenceNumber, $intent, $currency );

$intent, $currency optional.

Capture

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

or 

$payment->captureDirect($paymentId);

you can get $paymentId after sale or authorize call.

Query Payment

$payment->direct()->query($paymentId);

or 

$payment->queryDirect($paymentId);

you can get $paymentId after sale or authorize call.

Void Payment

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

or 

$payment->voidDirect($paymentId);

you can get $paymentId after sale or authorize call.