DOKU Malaysia API Reference
Home
Products
Products
  • Checkout
  • Payment
  • Cards Payment
DOKU Docs
Home
Products
Products
  • Checkout
  • Payment
  • Cards Payment
DOKU Docs
  1. Payment
  • Introduction
  • Getting Started
    • Create Account
    • Authentication & API Keys
    • Make your first API call
  • Checkout
    • Overview
    • Create Checkout
      POST
    • Retrieve Checkout Status
      GET
  • Payment
    • Overview
    • Create Payment
      POST
    • Get Bank List - FPX
      POST
    • Retrieve Payment Status
      GET
  • Cards Payment
    • Overview
    • Payment Form
      • Request Payment
    • Host-to-Host Payment
      • Check Three D Secure
      • Charge Payment
      • Capture Authorized Payment
    • Request Refund
    • Unbind Token
    • Check Status
  • Notification
    • Overview
    • Setup Notification URL
    • Retry Notification
    • Sample Notification - Global
    • Sample Notification - Cards
  • Technical Reference
    • Authentication & Integrity
    • Idempotency
    • Data Type
    • Order & Transaction Status
    • Postman Collection
    • Response Code
      • Error Code
    • API Version
      • Create Checkout
      • Create Payment
      • Get Bank List - FPX
      • Retrieve Checkout
      • Retrieve Payment
    • Signature
      • Signature - Global
        • Signature
      • Signature - Cards Payment API
        • Signature Component from Request Header
        • Signature Component from Response Header
        • Signature from API Get Method
        • Sample Code
  1. Payment

Overview

The Payment API is a unified direct payment API that supports multiple payment channels through a single endpoint. Merchants specify the desired payment channel in the request payload, allowing full customization of the payment flow and user experience.

Supported Payment Method#

Payment ChannelPayment MethodValue
FPXInternet BankingINTERNET_BANKING_FPX
Touch 'n GoE-WalletEWALLET_TNG
GrabPayE-WalletEWALLET_GRABPAY
ShopeePayE-WalletEWALLET_SHOPEEPAY
PayLater by GrabBNPLBNPL_GRABPAY
SPayLaterBNPLBNPL_SHOPEEPAY
AtomeBNPLBNPL_ATOME
Cards Payment Channel
Currently Cards channel aren't available on Payment API.
Cards channel will be supported in the future.

Integration Steps#

Payment API#

Here is the overview of how to Payment API works:
1.
Initiate Payment
Customer will trigger the Merchant System for Request Payment. Additionally, merchants can customize the transaction by sending several objects and parameter. Learn more about Payment API here. For FPX, merchant must request the Get Bank List API to get the bank_code and put it as a request on the Payment API.
2.
Complete Transaction
After get response from DOKU Payment API, Merchant must handle the response and redirect the customers to acquirer payment page. Customer will complete the transaction on acquirer page, and the process is based on what payment methods that customer chose.
3.
Redirect to Merchant Page
Given that customer already complete the transaction, DOKU will redirect your customers to Callback URL that already set on the request.
4.
Payment Notification
DOKU will send HTTP notification to the merchant side. Learn how to handle the notification from DOKU here.
5.
[Optional] Retrieve Payment
Besides receiving notification, merchant can use Retrieve Payment API to get the latest transaction status. Learn more here.

Get Bank List - FPX#

Get Bank List API will return the bank_code of FPX Banks, either B2C or B2B Banks based on the payment type that the merchant request. Learn more about Get Bank List API here.
Mandatory for FPX
This API will be mandatory if you use FPX as a payment method, because on the Payment API you are mandatory to include the bank_code if the payment channel is INTERNET_BANKING_FPX.
Modified at 2026-07-03 05:54:05
Previous
Retrieve Checkout Status
Next
Create Payment
Built with