Is drop-in script supported in Wix?
Using a Chargebee’s Modal Checkout with Wix.
This article applies when you are using Chargebee's V3 checkout pages (Modal)
Due to certain restrictions on WIX (Wix doesn’t allow you to load external scripts on your webpage), Chargebee’s drop-in script (modal/ pop-up) based checkout is not supported. However, you can integrate your Wix website and Chargebee's hosted pages by using the plan URL method.
On your website’s pricing (Wix) page merchants will need to showcase each product with the purchase/subscribe (button) on your Wix (pricing) page embedded with the Plan URL specific to each plan created in Chargebee.
Every Plan in Chargebee will have a static URL that you can use to load the Chargebee checkout.
When you select one of your products in the Wix site and click on "Subscribe", it will take you to our hosted checkout page to complete the sign-up.
Here's how you do it,
1. Create your plans in ChargeBee.
2. Next, create a plan specific URL in the format given below:
Here's a sample URL:
You can also pass addons and coupons along with the corresponding quantity as parameters along with this url. Below is an example:
3. You can then add buttons or images to your Wix site and link them to the hosted page URL (see insert above).
On your Wix configuration page make sure to embed the link and select the option to open in a new window.
On successful checkout redirection will happen to the URL configured on the plan level,Click Here.
If you want to use API based integration with Wix, you can use our API library and Click Here to access our API documentation.