Docs
This application will be supported till September 2024 due to Shopify's subscription application integration policy.
Selling physical goods on a recurring basis? Managing customers, subscriptions, orders should be taking a toll on you and your business operations. Chargebee integrates with Shopify to help you manage your physical goods' subscriptions, fulfillment and billing with ease.
Your customers can make a purchase and orders will be created and notified to Shopify. If you are using Shopify already, you need not create orders in Shopify manually, Chargebee will create orders on a recurring basis.
Here's a simple purchase flow in Chargebee and Shopify:
Data synchronization between Chargebee and Shopify happens at multiple stages. Each of it is explained below:
Customers
Customers and Orders will be synced when Customer Sync preference. is set as Account use.
Products & Discounts
Subscriptions/Checkout
Orders
Chargebee
Shopify
Step 1: Integrate Chargebee with Shopify
In your Chargebee app, click Settings > Third-party Integrations > Shopify > Connect.
Enter your Shopify store domain URL when prompted. This will authenticate Chargebee to access Customers, Products, Orders in your Shopify account.
Next you will be redirected to Shopify and allowed to review the access permissions. After reviewing, click Install unlisted app.
Step 2: Enter details in Shopify
Enter details about your business in Shopify:
Step 3: Configure Order sync preferences
Configure how you want to sync orders from Chargebee to Shopify:
Step 4: Configure Customer sync preferences
Configure how you want to sync customers to Shopify:
Step 5: Configure Self-serve Portal preferences
Setup how your customers can login and manage subscriptions via Chargebee's Self-serve Portal
Step 6: Initial Sync
Once the configuration is complete, Chargebee will sync first 10 orders to Shopify. You can view the information and then proceed to sync all the orders to Shopify which completes the setup.
Chargebee will sync orders regularly based on the configuration provided. You can view the details of the orders successfully synced and edit preferences if required.
Auto Sync: Information will be synced automatically instantaneously.
Sync Now:You can sync order information on-demand, by clicking the Sync Now option.
Manage Preferences: You can edit the preferences provided during the initial setup.
Success/Failed Sync Attempts: You can view the last 5 attempts of successful and failed attempts to sync orders.
Integrate Chargebee In-app Checkout with your Shopify site to maintain all your customer and subscription information acquired through checkout, in Chargebee. This step is crucial and is required after completing the Shopify integration.
All the details entered in the Chargebee In-app Checkout window during checkout is saved in the respective customer record. To know more, take a look at our docs on working with subscriptions and managing customers in Chargebee.
Chargebee supports three ways of integrating checkout:
The first approach of using drop-in script is where you configure your checkout variables in Chargebee, and include the generated drop-in-script in your Shopify site's checkout page to initiate In-app Checkout. This is the recommended approach as it is easy to implement and maintain.
Second approach is to use Plan based URL, which you have to construct using the instructions provided in this doc and embed the final URL in your Shopify site's checkout page to initiate In-app Checkout.
The third approach is where you integrate using Chargebee's backend APIs and frontend APIs . This gives you more control over the appearance and workflow of your checkout.
Ensure that you are PCI level 1 compliant before collecting and sending card details through API.
Your customers can manage their subscription using Chargebee's In-app Self Serve portal embedded in your Shopify site. Take a look at our In-app Self Serve Portal for directions on how to configure and use it on your Shopify site. Users can login and view their order details here:
1. I'm using a 3rd party authentication provider, will Chargebee's Portal be accessible to my customers?
Yes, once your customers log in to Shopify, they can access the Portal and view/manage their subscription details.
2. How do I sell products (one-time, not subscriptions) via Chargebee?
Yes, you can create Non-recurring addons (shippable) in Chargebee. On purchase, an order will be created and synced to Shopify.
3. How to map Product ID in Shopify to plans/addons in Chargebee?
.xml
. For example, if the URL is https://abc.myshopify.com/admin/products/2673823744064, modify it to https://abc.myshopify.com/admin/products/2673823744064.xml and load this URL.<variants>
element in the XML. Each variant of the product will be listed as a <variant>
child element under that. Determine the appropriate variant by looking at the <title>
child element for each <variant>
element.<id>
.id
in the custom field named sku and click Update Plan to save the details.4. How does Self-Serve portal work for Guest users in Shopify?
Your guest users cannot use the Portal to manage subscriptions, as they cannot login to Shopify.
5. I'm selling memberships (digital services/goods), will my customers still be able to manage their subscriptions in Shopify?
Yes, your customers can view/manage their subscription using Chargebee's Portal within Shopify, irrespective of whether orders are created and synced from Chargebee or not. Additionally, you can sync customer details using Chargebee's integration with Zapier.
6. Will Chargebee update the Product pages in Shopify?
No, Chargebee will not update the Product pages in Shopify. You will have to add the necessary details on the Product page/ Product details page in Shopify on your own, such as adding ‘Subscribe' button, ‘Billing frequency' etc. On clicking Subscribe button, Chargebee's Checkout will be loaded.
7. How to setup Paywall/gated content and sell on subscription model?
You can assign ‘tags' to customers. You can then code in your Shopify site to display/restrict content based on the tags assigned to the customers.
8. How do I uninstall the Chargebee app in my Shopify Store?
<!-- CB START -->
and <!-- CB END -->
.You can also use the backup file named customers/account-cb-bk.liquid to restore the changes to the form before Chargebee was installed.
9. When Chargebee app is un-installed, will the ‘Manage Subscription' option (Customer Portal) be removed as well from my Shopify store?
No, you should remove the Chargebee Portal code from the customer/account.liquid file manually.
10. Can I re-install the app after uninstalling it?
Yes, you can repeat the installation steps to install the Chargebee app in your Shopify store.