By default, DOKU will redirect the customer to DOKU Page. But you can override that configuration by specifying any types of callback.url parameter like what's below. There are 3 types of Callback URL that you can bring on request:
1.
Callback URL
2.
Callback URL Cancel
3.
Callback URL Result
In addition, if you want to automatically redirected to your result page, not through DOKU Result Page you can use Auto Redirection
Use this feature if you want to set a custom result URL for where customers will be redirected to after generating an order or after the payment is success.
Parameter
Type
Mandatory
Description
order.callback_url
String
Conditional, Mandatory for Payment Methods: Jenius
The URL is designated for button "Back to Merchant" both in Main Page and Result Page
The "Back to Merchant" button is configured using the URL provided in callback_url. If only callback_url is set, it will apply to the "Back to Merchant" button on both the Main Page and the Result Page.
Callback URL and Callback URL Result
If the merchant also set callback_url_result, then the callback_url will only affect the "Back to Merchant" button on the Main Page, while callback_url_result will specifically affect the button on the Result Page.
Use this feature if you want to set a custom result URL for where customers will be redirected to after the payment is success.
Parameter
Type
Mandatory
Description
order.callback_url_result
String
Optional
The URL designated for button "Back to Merchant" in result page
Callback URL and Callback URL Result
If the merchant also set callback_url_result, then the callback_url will only affect the "Back to Merchant" button on the Main Page, while callback_url_result will specifically affect the button on the Result Page.
Use this feature if you want your customers to automatically redirected to your result page, without go through DOKU Result Page after the payment is success.
Parameter
Type
Mandatory
Description
order.auto_redirect
boolean
Optional
When set as true, you will be automatically redirected to your result page, without go through DOKU Result Page after the payment is success; otherwise, it redirects to the DOKU Result Page