DOKU Malaysia API Reference
Home
Products
Products
  • Checkout
  • Payment
  • Cards Payment
DOKU Docs
Home
Products
Products
  • Checkout
  • Payment
  • Cards Payment
DOKU Docs
  1. Getting Started
  • Introduction
  • Getting Started
    • Create Account
    • Make your first API call
    • Authentication & API Keys
  • 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
      POST
    • Unbind Token
      POST
    • Check Status
      GET
  • Payout
    • Overview
    • Inquire Beneficiary Account
      POST
    • Send Payout
      POST
    • Read Payout Status
      GET
    • Read Available Balance
      GET
  • Notification
    • Overview
    • Retry Notification
    • Setup Notification URL
    • Sample Notification - Global
      POST
    • Sample Notification - Cards
      POST
  • Technical Reference
    • Authentication & Integrity
    • Idempotency
    • Data Type
    • Order & Transaction Status
    • Postman Collection
    • Response Code
      • Error Code
      • Payout Response Code
      • Credit Card Acquirer Response Code
    • API Version
      • Create Checkout
      • Create Payment
      • Get Bank List - FPX
      • Retrieve Checkout
      • Retrieve Payment
      • Inquire Beneficiary Account
      • Send Payout
      • Read Payout Status
      • Read Available Balance
    • Signature
      • Signature - Global
        • Prepare Signature Component
        • Generating Signature
        • Validating Signature
        • Sample Code
      • Signature - Cards Payment API
        • Signature Component from Response Header
        • Signature from API Get Method
        • Sample Code
        • Signature Component from Request Header
  1. Getting Started

Make your first API call

Overview#

This example helps you generate a hosted payment page using DOKU Checkout API, so your customer can pay via payment channels provided on Checkout Page, learn more here.
No complexity. Just follow these 3 steps. Are you ready? let's start.
What You Need Before Starting
✅ Your Client ID
✅ Your Secret Key
✅ Your Authorization
✅ A tool like Postman or cURL
No OAuth token needed — this API uses HMAC-SHA256 Signature in the headers to protect each request.

Use Case#

Accepting a Payment with Checkout
You want to send an invoice of MYR 100.25 to a customer, and let them pay via Checkout API.

Step 1: Generating Signature#

You can refer to these page for generating signature.

Step 2: Prepare the Payload#

As an example, we're gonna use the Checkout API. You can see the full API Documentation here.

Step 3: Send the Request#

If the transaction is success, you’ll get this:

Final Step: Redirect Your Customer#

Send the customer to the checkout_url.
They’ll see a secure page where they can pay via payment channels provided.
✅ Done!
You just created your first DOKU Checkout payment!
Test Data for Sandbox
1.
Cards: Use test card5120910000000012, any future expiry date, and CVV 100.
2.
Other Payment Methods: Continue to the end of the payment flow and choose success or failure.

What’s Next?#

1.
Setup your Notification Endpoint URL to get notified when payment is completed. Learn more here
2.
Try other amounts and invoice numbers.
3.
Try our other APIs.
4.
Ready to go live? Just swap to Production credentials.
Modified at 2026-11-02 08:21:10
Previous
Create Account
Next
Authentication & API Keys
Built with