Skip to main content

Direct Checkout — Mode: Card Payment

Returns a payment redirect URL for card (Mastercard / Visa) or GoBiz payment methods.

When to Use

Use this mode when:

  • Integrating credit / debit card payments via the Hosted Checkout
  • Adding GoBiz or Paydee payment options

How to Use

Endpoint
POST/v3/payment/online/checkout

Step 1: Create a Checkout

Call Hosted Payment Checkout to obtain checkoutId.

Step 2: Request the Redirect URL

POST with type: "URL" and the card / GoBiz method.

Step 3: Redirect the Customer

Send the customer to the returned url to complete payment.


Request Parameters

checkoutIdSTRINGrequired

Checkout ID from the Hosted Payment Checkout response.

typeSTRINGrequired

Checkout type. Set to "URL".

methodSTRINGrequired

Payment method (e.g., MASTERCARD_MY, GOBIZ_MY).

gobizOBJECT

GoBiz details

typeSTRING

GoBiz payment type.

Response Parameters

itemOBJECT

Response item

typeSTRING

Checkout session type.

urlSTRING

Payment URL.

codeSTRING

"SUCCESS" if the request succeeded.

errorOBJECT

Error details

codeSTRING

Error code.

messageSTRING

Error message.

debugSTRING

Debug message (sandbox only).