# Complete, Cancel and Error URLs

**URL:** <https://community.rapyd.net/t/complete-cancel-and-error-urls/1294>\
**Category:** General\
**Created:** [November 17, 2021, 6:08am UTC](https://community.rapyd.net/t/complete-cancel-and-error-urls/1294 "2021-11-17T06:08:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Community\_Team](https://avatars.discourse-cdn.com/v4/letter/c/46a35a/32.png) [@Community\_Team](https://community.rapyd.net/u/Community_Team)\
**Post date:** [November 17, 2021, 6:08am UTC](https://community.rapyd.net/t/complete-cancel-and-error-urls/1294/1 "2021-11-17T06:08:04Z")

</div>

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](https://ngrok.com/) will work.

### Supported In

| Checkout Page | Hosted API | Mass Invoice |
| --- | --- | --- |
| [Hosted Checkout Page](https://docs.rapyd.net/build-with-rapyd/docs/hosted-checkout-page-integration-steps) | ✅ | ✅ |
| [Checkout toolkit (embedded)](https://docs.rapyd.net/build-with-rapyd/docs/checkout-toolkit) | 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](https://docs.rapyd.net/build-with-rapyd/reference/beneficiary-tokenization-page-object) | [Hosted Save Card Details Page](https://docs.rapyd.net/build-with-rapyd/reference/tokens#hosted-page-card-token-object) | [Hosted Issued Card Details](https://docs.rapyd.net/build-with-rapyd/reference/card-details-object#display-issued-card-details-to-customer) | [Hosted IDV Page](https://docs.rapyd.net/build-with-rapyd/reference/hosted-page-identity-verification-object)  
| :— | :----: | :----: | :----: | :----: | —: |  
| 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.

### Supported In

| - | [Hosted Checkout Page](https://docs.rapyd.net/build-with-rapyd/docs/hosted-checkout-page-integration-steps) | [Hosted Save Card Details Page](https://docs.rapyd.net/build-with-rapyd/reference/tokens#hosted-page-card-token-object) | [Payment API](https://docs.rapyd.net/build-with-rapyd/reference/payment-object) |
| --- | --- | --- | --- |
| **API Call** | ✅ | ✅ | ✅ |
