Chargebee it is a subscription billing platform.
This manual will walk you through how to implement recurring billing solutions and subscription management from Chargebee on your landing page.
What you will need:
- Two buttons on your landing page: for subscription and account management.
- Three additional scripts on your landing page: one copied from your Chargebee account and two copied from this manual, with replaced proper ID values.
You can see an example implementation below
Step I – on Chargebee side
- Log into your Chargebee account and go to the Product Catalog tab. Choose the plan which you want to sell; copy its ID (2) (you will need it later) and then click on the Grab code link (3).
- Copy the Header script, which you will use later to paste inside Smartpages platform.
Step II – on Smartpages platform side
In the end, you should have 3 additional scripts, like in the screenshot below.
- Name the first script (A) – for example ‘chargebee’, paste the entire Header script which you copied before from your Chargebee account and place it on the head position on the main page. Click Save.
- To complete the second script, you will need your plan ID (from your Chargebee account) and subscribe button ID from Smartpages editor. To get it, go to the editor, choose a button that will initiate the payment, select it and copy its ID from the right menu.
- Name your second script (B) – for example, ‘subscribe’, and copy the script below, placing it on the body bottom of your landing page.
Remember to replace YOUR PLAN ID and SUBSCRIBE BUTTON ID with adequate values. Click Save.
- To complete the third script, you will need your manage account button ID. Come back again to the editor and choose a button to manage subscriptions by your clients; select it and copy its ID.
- Name your third script (C) – for example, ‘manage account’ and copy the script below, placing it on the body bottom of your landing page. Remember to replace MANAGE BUTTON ID with adequate value copied before. Click Save.
From now on, your clients can buy your product with recurring payments.