DOKU e-Wallet
Doku e-Wallet API Guide Explanation
Integration steps
Here is the overview of how to integrate with DOKU e-Wallet:
Obtain
payment.url
by generating orderDisplay DOKU Wallet payment page to customer
Acknowledge payment result
Direct API - DOKU e-Wallet Sequence Diagram
1. Obtain payment.url
by generating order
payment.url
by generating orderTo generate order, you will need to hit this API through your Backend:
API Request
Here is the sample of request header to generate order:
Request Header Explanation
Here is the sample request body to generate order:
Request Body Explanation
API Response
After hitting the above API request, DOKU will give the response.
Response Header Explanation
Here is the sample of response body:
Response Body Explanation
2. Display DOKU Wallet payment page to customer
Once you have the payment.url
, you can now display the payment page by redirecting your customer to the DOKU Wallet payment page.
After the customer completed the payment, they will be redirected to the defined success_url
that you set on the API request.
3. Acknowledge payment result
After the payment is being made by your customer, DOKU will send HTTP Notification to your defined Notification URL
. Learn how to handle the notification from DOKU:
Last updated