Integrating Refersion with Chargebee
Problem Statement
This article helps you understand integrating refersion with chargebee.
Solution
The Chargebee-Refersion integration allows you to set up an affiliate referral program to help you track and reward your affiliates. The integration tracks your customers' sign-ups and payments made through Chargebee via affiliate referrals.
Here's an outline of the steps involved. For the complete steps for the integration refer to our help documentation.
Step 1: Setting up the integration in Refersion
Follow the below steps to setup Chargebee in Refersion
- Login to Refersion
- Go to Account > Settings > Tracking
- Click Add Tracking
- Select Chargebee
- Integrate with Chargebee
- Select Hosted Checkout page
- Enter your Website URL
- Enter your Chargebee Site URL
- Copy your Refersion API Keys, and Subdomain information
- Connect Chargebee
Step 2: Setting up the integration in Chargebee
To set up the integration, navigate to Settings > Third-Party Integrations > Refersion in your Chargebee account. Paste your Refersion API Keys, and Subdomain information and click Save.
Step 3: Configure Webhooks
To send the order data back to Refersion, configure Refersion's webhook in your Chargebee site under Settings > Configure Chargebee > Webhooks and click Add new webhook.
Configure the Refersion's Webhook URL, with the Refersion API Keys, and Subdomain details
Step 4: Setting up the Checkout
-
Add Chargebee JS to. your header
-
If you are using, Chargebee's Drop-In Script to generate the Subscribe button,
Add the parameter data-cb-refersion-enabled="true" to your Chargebee JS function in the header
-
If you are using, Chargebee JS and generating your own Subscribe buttons, Add the following script in all the pages that have the checkout/subscribe button.
Step 5: Setting up your Thank you / Conversion page
You can use Chargebee's default Thank you page or set up a custom Thank you page. Click here to read more.
Step 6: Allowlisting your Domain
Allowlist your domain in Chargebee. Go to Settings > Configure Chargebee > Checkout & Self Serve Portal > Advanced Settings > Add Domains and add your site.
Note: Applies only when you are using Chargebee's Checkout
Related Articles
Show more
Was this article helpful?