Docs
Hosted checkout does not load on Safari on iPhone. After filling in details and proceeding to checkout, nothing happens—the Chargebee-hosted checkout pop-up does not appear. The console shows: TypeError: null is not an object (evaluating 'this.window.location') cb-window-manager.ts:98.
Safari blocks pop-ups by default, while other browsers typically do not. On mobile, the hosted checkout opens in a new tab instead of an iframe/pop-up by design, because mobile browsers often block pop-ups and affect the checkout experience.
Choose one of these options:
Option 1 – Use iframe (Chargebee JS)
If you use Chargebee JS, use the iframeOnly function to open checkout within the same tab.
Option 2 – Disable Block Pop-ups on iPhone
Option 3 – Use plan-specific URL
Instead of the Drop-in script, use a plan-specific URL so customers are redirected to the checkout page in a new screen. See Hosted Checkout for configuration details.
Was this article helpful?