Redirect URL not working

Modified on: Wed, 22 Dec, 2021 at 3:18 PM

This article covers 

Redirect URL not working even after the setup of callback functions

URL is whitelisted but the redirect doesn’t work


The redirect URL can be configured at the Plan level or via the API to override the default “Thank you” page. If you are using a custom URL and you have trouble with the redirection, ensure you have whitelisted the domain (both source and destination URLs). 

If your customers close the checkout (applies to v3 hosted pages only) you can use the checkout callbacks.

  1. Whitelisting the domain

For example, if your source redirect URL is and the destination redirect URL  is https://abc/order-confirmation make sure you whitelist both the domains ( as well as . To do this, Go to 

> Settings 

> Configure Chargebee 

> Checkout & Self serve portal 

> Advanced settings 

> Add domains

Note: Don't enter the complete URL to whitelist. If the return URL is, then you'll have to enter as the whitelisted domain.

You can whitelist more than one domain name by using comma. 

  1. Closing the entire checkout using the (close) button

Your customers may try to close the entire checkout box after a successful transaction, to support those cases, make sure you pass a redirect URL in the close ( ) callback using window.location.href = ' URL '. Refer to set checkout callbacks to know more about this.

Related Articles and Documentation

How to configure return/redirect URLs in Chargebee?

Managing the Payment Source Redirect URL

Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.