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.
Whitelisting the domain
For example, if your source redirect URL is https://www.xyz/purchase and the destination redirect URL is https://abc/order-confirmation make sure you whitelist both the domains (www.xyz.com as well as www.abc.com) . To do this, Go to
> Configure Chargebee
> Checkout & Self serve portal
> Advanced settings
> Add domains
Note: Don't enter the complete URL to whitelist. If the return URL is https://your-domain.com/list_products, then you'll have to enter your-domain.com as the whitelisted domain.
You can whitelist more than one domain name by using comma.
Closing the entire checkout using the x (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