Chargebee Integration: Add Chargebee to Your Site
Chargebee
Sell subscriptions from your We.Inc site with Chargebee's hosted checkout, opened by chargebee.js and a Subscribe link.
Use Case
Selling plans through Chargebee checkout from a We.Inc page
Chargebee is subscription billing and revenue software: it manages plans, add-ons, invoices, renewals and customer self-service, with separate products for quoting, revenue recognition and retention.
For a website, Chargebee's drop-in checkout is the relevant piece. You load chargebee.js with your Chargebee site name in a data-cb-site attribute, then add links or buttons with data-cb-type set to checkout and a data-cb-plan-id. Clicking one opens Chargebee's hosted checkout, and the customer lands on your redirect URL after paying.
This is different from We.Inc's own Store panel, which connects your Stripe account for products, digital downloads and discount codes. Chargebee is the better fit when recurring billing logic, invoicing and plan changes are the core of the business.
Drop-in script
One script tag plus data attributes on a link opens hosted checkout.
Plans and add-ons per button
Each button can set a plan, quantity and add-ons.
Hosted payment page
Card details are collected by Chargebee, not by your site.
Redirect after purchase
Send customers to a thank-you page on your We.Inc site.
Setup Guide
How to integrate Chargebee.
Add drop-in checkout with the builder chat
The quickest way to put Subscribe buttons on a pricing page.
Step-by-step guide
- 1
In Chargebee, set up your plans and a redirect URL for successful checkout.
- 2
Generate the drop-in links in Chargebee Billing's drop-in script section, or note your site name and plan IDs.
- 3
Paste the chargebee.js script tag into the We.Inc chat and ask for it on the pricing page.
- 4
Paste the generated link code and ask the chat to turn each plan card's button into that Chargebee link.
- 5
Because We.Inc sites are React apps, ask the chat to call Chargebee.registerAgain() after the pricing page mounts, as Chargebee's docs advise for React.
- 6
Publish, then click a button on the live site using your Chargebee test site first.
Link to a Chargebee hosted page
No script, just a button.
Step-by-step guide
- 1
Copy a hosted checkout URL for the plan from Chargebee.
- 2
Ask the We.Inc chat to add a Subscribe button that links to it.
- 3
Publish and test the link on the live site.
React needs one extra call
chargebee.js binds clicks to drop-in links when the page first loads. In a React app the pricing buttons can render after that moment, so the links do nothing. Chargebee's tutorial says to call Chargebee.registerAgain() after the component mounts in React, Angular or Vue. Mention this when you ask the We.Inc chat to set things up, and click every button after publishing.
Chargebee pricing could not be fully confirmed
Chargebee's pricing page, read in October 2026, shows rates of $0 plus 0.80% and $99 plus 0.65% beside a revenue slider, without clearly saying which plan each applies to, and custom pricing for Enterprise. Check the pricing page directly for what your billing volume would cost.
API keys stay on the server
The drop-in script needs only your public site name. If you later want to read subscriptions or create portal sessions through Chargebee's API, keep the full-access key in We.Inc's Cloud panel Secrets and call the API from an edge function.
Chargebee questions
- Should I use Chargebee or the We.Inc Store panel?
- For one-off products, digital downloads and simple shipping, the Store panel with your own Stripe account is enough. Choose Chargebee when you run subscription plans with upgrades, add-ons, invoices and renewals that need proper billing management.
- Do I need a Chargebee test site?
- Chargebee's drop-in tutorial uses a test site with a trial-period plan. Testing there first lets you click through checkout on your published We.Inc page without charging real cards.
- My Subscribe button does nothing when clicked. Why?
- Usually the script loaded before React rendered the button, so the click was never bound. Ask the chat to call Chargebee.registerAgain() once the pricing page has mounted, then publish and try again.
- Can customers manage or cancel their subscription from my site?
- Chargebee offers a customer self-service portal for changing plans, updating cards and cancelling. The simplest route is a Manage subscription link on your We.Inc site that sends signed-in customers to that portal; creating portal sessions through the API should run in an edge function so your key stays private.
Sources
Checked October 17, 2026.
- Chargebee drop-in checkout tutorial (2026-10-17)
- Chargebee pricing (2026-10-17)
Related
More Payment Gateways integrations.
Ready to integrate Chargebee?
Start building your website with We.Inc and connect Chargebee in minutes.
More in Integrations
- Use We.Inc in ChatGPT
- Use We.Inc from Claude
- How to Connect Coinbase Commerce to Your We.Inc Website
- Use We.Inc from Cursor and VS Code
- Flodesk Integration: Add Flodesk to Your Site
- Formbricks Integration: Add Formbricks to Your Site
- Fresha Website Builder: Embed Fresha Booking on Your Site
- Mouseflow Integration: Add Mouseflow to Your Site
Product
Who It's For
- For Agencies
- For Freelancers
- For Hosting Providers
- For SaaS Platforms
- For Startups
- For Financial Services
- For Healthcare
Features
Resources
- Blog
- Help Center
- Free Business Tools
- Free UI Components
- Website Templates
- Template Collections
- Website Examples
- Guides
- Comparisons
- Alternatives
- Best Lists
- Reviews
- Pricing Guides
- Use Cases
- Glossary & Guides
- Integrations
- Developers
- Benchmark
- Windows App
