Hosted pages have different fields for URLs that redirect the user after completing the payment, canceling a payment or if there’s a payment error.
Here are some of the different values and what hosted pages they apply to.
Hosted Checkout Page
Hosted checkout page will have it’s own unique URLs to redirect since the user workflow may have extra steps (bank redirect, ewallets).
complete_checkout_url
- URL where the customer is redirected after pressing Finish to exit the hosted page.
cancel_checkout_url
- URL where the customer is redirected after pressing Back to Website to exit the hosted page.
- Note: These URLs override the
merchant_website
URL. - Does not support localhost URLs. A solution like ngrok will work.
Supported In
Checkout Page | Hosted API | Mass Invoice |
---|---|---|
Hosted Checkout Page | ||
Checkout toolkit (embedded) | n/a | n/a |
Rest of the Hosted Pages:
complete_url
- The URL of the page that is displayed after the application is submitted, and the Continue button is clicked.cancel_url
- URL of the page that is displayed after the Back to website button is clicked.
Supported In
- | Hosted Beneficiary Account Details Page | Hosted Save Card Details Page | Hosted Issued Card Details | Hosted IDV Page
| :— | :----: | :----: | :----: | :----: | —: |
| Hosted page (API) | | | n/a |
| Toolkit (embedded) | n/a | n/a | n/a | n/a
Mass Beneficiary via Client Portal | n/a | n/a | n/a | n/a
URLs Redirected from Third Parties
complete_payment_url
- URL where the customer is redirected for final steps in completing the operation. Provided by the client.
Relevant to bank redirect payment methods.
error_payment_url
- URL where the customer is redirected in case of an error in the operation. Provided by the client.
Relevant to bank redirect payment methods.