Easy as 1-2-3! Install Chargebee Retention in three easy steps.
The technical requirements for installing Chargebee Retention with Chargebee Billing, or any of our supported billing providers are fairly straightforward and can be outlined in 3 easy steps. The following guide can work with any e-commerce platform or front-end framework so long as you have access to updating the source code on the page where the user clicks cancel.
1) Add an API key from your subscription billing provider in the Chargebee Retention settings.
What's this for? The API key allows Chargebee Retention access to look up your user and modify the subscription for cancels, discounts, plan changes, and billing extensions or pauses.
In the Chargebee application go to Settings > Configure Chargebee > API Keys and click Add API Key.
Use a full access key if you would like Chargebee Retention to make subscription updates. Then assign the key an access level and click Create Key.
Copy the new key and open the Chargebee Retention application. Head over to Settings > Integrations > Chargebee and add the key with your site name and API key.
Chargebee is connected! Now you'll need to edit the page where your cancel button lives in your application.
2) Apply the
id="bb-cancel" selector to the button or link element that the user clicks to initiate a cancel session.
<button id="bb-cancel" href="">Cancel Subscription</button>
3) Drop our snippet in the <body> of the page somewhere below the button and populate the request payload with the user's subscription id like so:
What's this for? This step identifies your user in Chargebee Retention, syncs the subscription information in Chargebee and directs them to their personalized cancel experience should they choose to click cancel.
The above implementation steps are all you need to get started and can be accomplished in less than one day or even a few minutes for each task. We also support many customization options and install variations such as installing in a single page app, pulling in custom data, white-labeling your pages with a vanity domain, and much more. Questions? Please reach out if you have any questions! email@example.com