DOKU

DOKU is one of Indonesia’s leading digital payment platforms, offering secure and easy solutions for online payments, e-wallet services, and payment gateways. Founded in 2007, DOKU enables millions of users and businesses to send, receive, and manage payments seamlessly across various channels, supporting Indonesia’s growing cashless economy. Learn more about DOKU.

Payment method properties

Markets (consumer)ID
Processing currenciesIDR
Consumer currenciesIDR
Settlement currenciesUSD
Authentication methodsREDIRECT
Authentication timeout1 Hour
Minimum payment amountIDR 10,000
Maximum payment amountFor non-KYC users: IDR 2,000,000
For KYC users: IDR 10,000,000
Payment instrumentPASSTHROUGH_WALLET
Recurring paymentsNo
Separate capturesNo
RefundNo
Refund validityN/A
DisputesNo
Sandbox availabilityPPRO mock processor

Make a DOKU payment

DOKU payments follow our standardized REDIRECT payment flow. Enabling you to offer a seamless desktop experience. We recommend including all relevant settings for any authentication methods you support.

To create a DOKU payment, you'll need to provide the following data at minimum when calling our payment charges API:

FieldDescription
paymentMethodDOKU
amount.valueThe amount to be paid in the smallest units of the currency used.
amount.currencyIDR
consumer.nameFull name of the consumer.
consumer.countryThe country where the consumer is shopping.
consumer.emailThe consumer’s email address
consumer.phoneThe consumer phone number.
order.shippingAddress.streetStreet name, house number and other details such as apartment number or door number
order.shippingAddress.postalCodeThe address postal code.
order.shippingAddress.cityThe address city.
order.shippingAddress.countryThe address region.
order.orderItems.nameThe order item name.
order.orderItems.quantityThe order item quantity.
order.orderItems.amountThe amount to pay for each individual item in the payment charge currency's smallest unit.
authenticationSettings: REDIRECT
settings.returnUrl
Add the URL where the consumer should be redirected after they complete the payment. Required for the REDIRECT flow.

Request

POST /v1/payment-charges

{
    "paymentMethod": "DOKU",
    "amount": {
        "value": 100,
        "currency": "IDR"
    },
    "consumer": {
        "name": "John Smith",
        "country": "ID",
        "email": "[email protected]",
        "phone": "123456789"
    },
    "order": {
        "shippingAddress": {
            "street": "Hellersbergstraße 14",
            "postalCode": "41460",
            "city": "Berlin",
            "country": "AU"
        },
        "orderItems": [
            {
                "name": "Product Name 1",
                "quantity": 1,
                "amount": 100
            }
        ]
    },
    "authenticationSettings": [
        {
            "type": "REDIRECT",
            "settings": {
                "returnUrl": "https://www.ppro.com/"
            }
        }
    ]
}

Response

You'll receive our standard payment charge response with the available authentication methods:

{
    "id": "charge_cIXBdKaJtvMPVhnN9247r",
    "paymentMethod": "DOKU",
    "paymentMedium": "ECOMMERCE",
    "scheduleType": "UNSCHEDULED",
    "instrumentId": "instr_rSLOALeSSRlDGM7z3uxMF",
    "currency": "IDR",
    "country": "ID",
    "paymentDescriptor": "Payment Descriptor",
    "status": "AUTHENTICATION_PENDING",
    "consumer": {
        "name": "John Smith",
        "email": "[email protected]",
        "phone": "123456789",
        "country": "ID",
        "billingAddress": {
            "firstName": "John",
            "lastName": "Smith",
            "phoneNumber": "01522113356",
            "street": "Hellersbergstraße 14",
            "postalCode": "41460",
            "city": "Berlin",
            "region": "Berlin",
            "country": "AU"
        }
    },
    "order": {
        "orderItems": [
            {
                "name": "Product Name 1",
                "quantity": 1,
                "amount": 100
            }
        ],
        "shippingAddress": {
            "firstName": "John",
            "lastName": "Smith",
            "phoneNumber": "01522113356",
            "street": "Hellersbergstraße 14",
            "postalCode": "41460",
            "city": "Berlin",
            "region": "Berlin",
            "country": "AU"
        },
        "industryData": []
    },
    "authenticationMethods": [
        {
            "details": {
                "requestUrl": "https://authman.qa.lp-pl.ppro.com/v0/pages/form-post?redirection_token=eyJhbGciOiJIUzUxMiJ9.eyJzZXNzaW9uIjp7InIiOiJjaGFyZ2VfY0lYQmRLYUp0dk1QVmhuTjkyNDdyIn19.dNPlOks78N-3B7zqjuRXPkvZ3GDk87oBUtkKQKhTDQHEUeMT-wgfarIeF5p7t3c_zYxzqVqzKnjiQAuV_DK9aQ",
                "requestMethod": "POST"
            },
            "type": "REDIRECT"
        }
    ],
    "authorizations": [
        {
            "id": "authz_dBspwpkHGGllW2I4K1af1",
            "amount": 100,
            "status": "AUTHENTICATION_PENDING",
            "merchantPaymentChargeReference": "order-id",
            "internalData": {
                "processorAuthorizationContext": {
                    "sessionPayload": "MALLID=8912&CHAINMERCHANT=NA&AMOUNT=1.00&PURCHASEAMOUNT=1.00&TRANSIDMERCHANT=160000466105&WORDS=8160ea29a6322586a62930b6adaeb4514090de80&REQUESTDATETIME=20250804140804&CURRENCY=360&PURCHASECURRENCY=360&SESSIONID=charge_cIXBdKaJtvMPVhnN9247r&NAME=John%20Smith&EMAIL=johnsmith%40example.com&BASKET=Product%20Name%201%2C100%2C1%2C0&SHIPPING_ADDRESS=Hellersbergstra%C3%9Fe%2014&SHIPPING_CITY=Berlin&SHIPPING_COUNTRY=AU&SHIPPING_ZIPCODE=41460&MOBILEPHONE=123456789",
                    ".initiatedTimestamp": "2025-08-04T07:34:32.043Z",
                    "forwardUrl": "https://staging.doku.com/Suite/Receive",
                    "returnUrl": "https://www.ppro.com/",
                    "paymentChannel": "undefined",
                    "instrument.id": "instr_rSLOALeSSRlDGM7z3uxMF",
                    "failureUrl": "https://www.ppro.com/?isFailure=true"
                },
                "paymentOperationNumber": 160000466105,
                "paymentOperationShortCode": "700DL9I"
            },
            "createdAt": "2025-08-04T07:34:32.148Z",
            "updatedAt": "2025-08-04T07:34:32.148Z"
        }
    ],
    "captures": [],
    "refunds": [],
    "voids": [],
    "createdAt": "2025-08-04T07:34:31.559Z",
    "updatedAt": "2025-08-04T07:34:32.148Z",
    "internalData": {
        "processorAuthorizationContext": {
            "sessionPayload": "MALLID=8912&CHAINMERCHANT=NA&AMOUNT=1.00&PURCHASEAMOUNT=1.00&TRANSIDMERCHANT=160000466105&WORDS=8160ea29a6322586a62930b6adaeb4514090de80&REQUESTDATETIME=20250804140804&CURRENCY=360&PURCHASECURRENCY=360&SESSIONID=charge_cIXBdKaJtvMPVhnN9247r&NAME=John%20Smith&EMAIL=johnsmith%40example.com&BASKET=Product%20Name%201%2C100%2C1%2C0&SHIPPING_ADDRESS=Hellersbergstra%C3%9Fe%2014&SHIPPING_CITY=Berlin&SHIPPING_COUNTRY=AU&SHIPPING_ZIPCODE=41460&MOBILEPHONE=123456789",
            ".initiatedTimestamp": "2025-08-04T07:34:32.043Z",
            "forwardUrl": "https://staging.doku.com/Suite/Receive",
            "returnUrl": "https://www.ppro.com/",
            "paymentChannel": "undefined",
            "instrument.id": "instr_rSLOALeSSRlDGM7z3uxMF",
            "failureUrl": "https://www.ppro.com/?isFailure=true"
        },
        "paymentOperationNumber": 160000466105,
        "paymentOperationShortCode": "700DL9I",
        "merchantId": "test-merchant",
        "autoCapture": false
    },
    "simpleApiPassthrough": {
        "specout": {
            "paymentChannel": "undefined",
            ".initiatedTimestamp": "2025-08-04T07:34:32.043Z"
        },
        "transientout": {}
    },
    "simpleApiPassthroughOut": {
        "specout": {
            "paymentChannel": "undefined",
            ".initiatedTimestamp": "2025-08-04T07:34:32.043Z"
        },
        "transientout": {}
    },
    "_links": {
        "authorizations": {
            "href": "/v1/payment-charges/charge_cIXBdKaJtvMPVhnN9247r/authorizations"
        },
        "captures": {
            "href": "/v1/payment-charges/charge_cIXBdKaJtvMPVhnN9247r/captures"
        },
        "refunds": {
            "href": "/v1/payment-charges/charge_cIXBdKaJtvMPVhnN9247r/refunds"
        },
        "voids": {
            "href": "/v1/payment-charges/charge_cIXBdKaJtvMPVhnN9247r/voids"
        }
    }
}

Pick the desired authentication method

REDIRECT

  1. Redirect your consumer to the returned $.authenticationMethods[?(@.type == "REDIRECT")].details.requestUrl.
    For example, with the value of https://redirection-target.ppro.com/ using the returned $.authenticationMethods[?(@.type == "REDIRECT")].details.requestMethod HTTP method.
  2. The consumer will be presented with the reference number and instructions to complete the payment.

Handling the payment result

REDIRECT

  1. After the consumer completes the payment, they are redirected to the returnUrl specified in the payment charge creation request.
  2. Upon redirect back to your site, retrieve the latest payment status by performing a GET /v1/payment-charges/{paymentChargeId}. Use the returned status field to determine and display the final payment outcome to the consumer.
  3. Additionally, webhooks are triggered to notify you of the payment result. This ensures you receive the outcome even if the consumer closes their browser or fails to return to your website.

Payment instrument

A PASSTHROUGH_WALLET instrument will be created for DOKU, with no additional data provided.

Request

GET /v1/payment-instruments/{instrument-id}

Response

{
    "id": "instr_vlhrwkPclBlrhf8gnANVh",
    "internalData": {
        "merchantId": "test-merchant"
    },
    "type": "PASSTHROUGH_WALLET"
}