BTN v1.0
DOKU has partnered with various banks and one of them is BTN to provide Virtual Account Payment. Learn more about how DOKU can help you integrate with BTN Virtual Account here.
Last updated
DOKU has partnered with various banks and one of them is BTN to provide Virtual Account Payment. Learn more about how DOKU can help you integrate with BTN Virtual Account here.
Last updated
DOKU API
Legacy DocumentationThere is one method to integrate with BTN VA:
Merchant could hit create VA API (service code 27) to create their virtual account number by acquirer. The number created then will be inquired by acquirer, merchant can get the payment notification.
Check this flow diagram to get know about this method
Here is the overview of how to integrate with Virtual Account:
To create Virtual Account, you will need to hit this API through your Backend:
Service Code
27
HTTP Method
POST
API Endpoint Sandbox
API Endpoint Production
Path
Here is the sample request header, request body and response body for BTN VA
Pro Tips!
You can also show payment instruction link to your customer by using virtual_account_info.how_to_pay_page
If you wish to customize the UI for the payment instruction, you can use the virtual_account_info.how_to_pay_api
You can display the payment code to your customer by using virtual_account_info.virtual_account_number
that you retrieved from the API response.
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 .
If you do not receive notifications from DOKU due to some issue, you can perform an API status check on the DOKU side to determine the updated transaction status. See the detailed request and response here Check Status API.
Here is the overview of how to integrate Direct Inquiry BTN VA :
Setup Inquiry URL on DOKU Dashboard
Generate Payment Code on your End
Receive Inquiry Request from DOKU
Acknowledge Payment Notification
Check this flow to diagram to get know about this API :
To get Inquiry Request from DOKU, you will need to hit this API through your Backend:
To receive the inquiry request from DOKU. You must set your Inquiry URL
to DOKU. Please contact our team for the setup.
Please inform the Inquiry URL
for Sandbox environment and Production environment.
Generate payment is done in your system. The payment code length maximum is 23
digits.
Here is the sample request header, request body from DOKU
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 .
If you do not receive notifications from DOKU due to some issue, you can perform an API status check on the DOKU side to determine the updated transaction status. See the detailed request and response here Check Status API.