Direct Checkout — Mode: DuitNow QR
Returns a DuitNow QR code that supports all DuitNow-compatible payment apps in Malaysia.
When to Use
▾
Use this mode when:
- You want a single QR accepted by Maybank, CIMB, TouchnGo, GrabPay, Boost, and other DuitNow-supported apps
- Reducing checkout friction with a universal QR
note
Poll Query Payment Checkout every 3-5 seconds to track payment status.
How to Use
▾
Endpoint
POST
/v3/payment/online/checkoutStep 1: Create a Checkout
▾
Call Hosted Payment Checkout to obtain checkoutId.
Step 2: Request the DuitNow QR
▾
POST with type: "DUITNOW_QRCODE" and an empty method.
Step 3: Display and Poll
▾
Render the returned base64Image and poll Query Payment Checkout for status.
Request Parameters
▾
Checkout ID from the Hosted Payment Checkout response.
Checkout type. Set to "DUITNOW_QRCODE".
Leave empty for DuitNow QR.
Response Parameters
▾
Response item
Checkout session type.
qrcode details
Base64-encoded QR code image.
QR code data string.
"SUCCESS" if the request succeeded.
Error details
Error code.
Error message.
Debug message (sandbox only).