Redirect URL not working
Problem Statement
The redirect URL isn't working even after setting up callback functions. The URL is whitelisted but the redirect still doesn't work.
Solution
Both the source and destination URLs must be whitelisted for redirects to work.
Steps to Set It Up
1. Redirect after successful checkout
Whitelist both the source URL (where checkout is embedded) and the destination URL (where customers are redirected after checkout). Go to Settings > Configure Chargebee > Checkout & Self-serve Portal > Advanced settings > Add domains
2. Closing checkout with the X button
To redirect when the customer closes the checkout after a successful transaction, pass a redirect URL in the close() callback using window.location.href = 'URL'. See Set checkout callbacks.
Related Articles
Show more
Was this article helpful?