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
    • Authentication & API Keys
    • Make your first API call
    • Create Account
  • Checkout
    • Overview
    • Create Checkout
    • Retrieve Checkout Status
  • Payment
    • Overview
    • Create Payment
    • Get Bank List - FPX
    • Retrieve Payment Status
  • 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
      • Credit Card Acquirer Response Code
    • API Version
      • Create Checkout
      • Create Payment
      • Get Bank List - FPX
      • Retrieve Checkout
      • Retrieve Payment
    • 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!

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-08-31 09:26:51
Previous
Authentication & API Keys
Next
Create Account
Built with