block-quote On this pagechevron-down
copy Copy chevron-down
Accept Payments chevron-right Direct API chevron-right SNAP chevron-right Integration Guide chevron-right E-Wallet DANA DANA offers one time payment type that allow customer to make a payment without account binding/card registration process.
Integration Steps
Overview of integration process with DANA.
Payment process using DANA doesn't require account binding. After customer creates an order and chooses DANA as payment method on merchant's platform, merchant will hit this payment API to get redirect URLs to DANA's platform for customer to complete the payment.
API Endpoint
.../direct-debit/core/v1/debit/payment-host-to-host
Sample of Request Header, Request Body and Response Body
Notes:
Parameter with (*) is mandatory
Paramater without (*) is optional/conditional
post
https://{api-domain} /direct-debit/core/v1/debit/payment-host-to-host X-TIMESTAMP string · utc timestamp Required Client's current local time in yyyy-MM- ddTHH:mm:ssTZD format
Example: 2020-12-21T07:56:11.000Z X-SIGNATURE string Required Algorithm symmetric signature HMAC_SHA512 (clientSecret, stringToSign)
Example: 85be817c55b2c135157c7e89f52499bf0c25ad6eeebe04a986e8c862561b19a5 X-PARTNER-ID string Required Unique ID for a partner (DOKU'S Client ID)
Example: 821508239190 X-EXTERNAL-ID string Required Numeric String. Reference number that should be unique in the same day (request-id)
Example: 418075533589 X-DEVICE-ID string Required Device identification on which the API services are currently being accessed by the end user (customer). Can’t contain symbols
Example: 95221 X-IP-ADDRESS string Optional conditional. IP address of the end user (customer) using IPv4 format
Example: 95221 Authorization string Required Access Token obtained from Get B2B Token API
Example: 95221 Body
application/json chevron-down application/json
partnerReferenceNo string Required invoice number from partner | max: 64 | Mandatory
Example: INV-0001 validUpTo string Optional Expired time payment url | format: 2024-07-10T11:57:58+07:00
Example: 2024-07-10T11:57:58+07:00 pointOfInitiation string Optional Point of initiation from partner | value: app/pc/mweb | max: 20
Example: app urlParam object Required
Show properties plus
amount object Required
Show properties plus
additionalInfo object Optional
Show properties plus
Response object
Show properties plus
2. Payment Notification
After payment is completed, DOKU will send HTTP Notification to merchant's defined Notification URL.Learn how to handle the notification from DOKU .
3. Additional Feature
This endpoint is used to create refund request for previous successful payment. Merchant can request a transaction refund to DOKU.
API Endpoint
.../direct-debit/core/v1/debit/refund
Sample of Request Header, Request Body and Response Body
Notes:
Parameter with (*) is mandatory
Paramater without (*) is optional/conditional
post
https://{api-domain} /direct-debit/core/v1/debit/refund X-TIMESTAMP string · utc timestamp Required Client's current local time in yyyy-MM- ddTHH:mm:ssTZD format
Example: 2020-12-21T07:56:11.000Z X-SIGNATURE string Required Algorithm symmetric signature HMAC_SHA512 (clientSecret, stringToSign)
Example: 85be817c55b2c135157c7e89f52499bf0c25ad6eeebe04a986e8c862561b19a5 X-PARTNER-ID string Required Unique ID for a partner (DOKU'S Client ID)
Example: 821508239190 X-EXTERNAL-ID string Required Numeric String. Reference number that should be unique in the same day (request-id)
Example: 418075533589 X-DEVICE-ID string Required Device identification on which the API services are currently being accessed by the end user (customer). Can’t contain symbols
Example: 95221 X-IP-ADDRESS string Optional conditional. IP address of the end user (customer) using IPv4 format
Example: 95221 Authorization string Required Access Token obtained from Get B2B Token API
Example: 95221 Body
application/json chevron-down application/json
additionalInfo object Required
Show properties plus
originalPartnerReferenceNo string Required Partner Reference No from Purchase Transaction | max: 64 | Mandatory
Example: INV-0001 originalExternalId string Optional External ID from Purchase Transaction | max: 64 |
Example: REQ-0001 refundAmount object Optional
Show properties plus
reason string Optional Reason for Refund | max: 255
Example: Request by Customer partnerRefundNo string Required Partner Refund No from Partner | max: 64 | Mandatory
Example: INV-REF-0001 Response object
Show properties plus
Last updated 3 months ago