Docs

Integrations Articles & FAQ

salesforce, crm, recurring, billing, force, subscription, plugin, ChargeBee

461783

2015-06-01T20:24:54Z

2017-08-03T09:06:57Z

600

1

0

210192

Salesforce plugin for Chargebee - Installation Guide

Salesforce plugin for Chargebee - Installation Guide 

Overview


This plugin connects Salesforce with Chargebee and syncs data between the 2 systems. The purpose of this guide is to make you familiar with the usage for Chargebee for Salesforce app.

Chargebee for Salesforce app is a 2-way SFDC-to-Chargebee and vice-versa connector that enables to create and update Subscription directly from Salesforce for any plan in Chargebee.

This app will retrieve all the Subscription, Plans, Addons, Coupons, Transaction, Invoices from Chargebee and sync with Salesforce data.

Installing the Chargebee for Salesforce App


Chargebee for Salesforce is a private application that cannot be found by searching the Salesforce App Exchange. It can only be installed using the link below:

Steps to Install Chargebee for Salesforce 


  1. After clicking on the link above, click on Get It Now, then choose to install in your production or sandbox Salesforce org:
  1. Indicate that you have read and agreed to the terms, and click Confirm and Install!

  2. When prompted, provide your Salesforce login credentials

  3. The Package Installation Details page shows the ChargeBee for Salesforce components that will be added. Click Continue.

  1. Chargebee for Salesforce will use your Salesforce credentials and redirect you to the Approve Package API Access page. Click Next.
  1. From the Choose security level page, you can grant access to:

· Admins Only

· All users

· Specify your own settings

Select the security level you want to use and click Next.

  1. From the Installation Package page, click Install.
  1. You will receive an email from support@salesforce.com when the installation is complete.

Chargebee for Salesforce Quick Setup


From the Chargebee Setup tab, you can perform the following functions:

  1. Set up your Chargebee information. You must have a Chargebee login to use Chargebee for Salesforce app.

  2. Set up your data sync now and hourly from Chargebee.

  3. Set up Address Requirement setting as On or Off as per Chargebee account settings.

  1. Chargebee Connect


Click on “Chargebee Setup” tab and then “Chargebee Connect” to connect with a Chargebee account and enter Chargebee Username, API Key and Site which you get from the Chargebee account.

But before saving the credentials you have to create a remote site setting with the same site of Chargebee account as below

Remote Site Setting 


Add Chargebee Site in Remote site setting From:

Setup => Administration Setup => Remote Site Settings

From Remote Site Settings Page Click on New Remote Site add Chargebee site URL and Click on Save.

And now you can save the Chargebee credentials.

Once you save your credentials on this screen, you will not have to provide them again.

  1. Chargebee Sync


Now click on “Chargebee Sync” tab and then click on “Sync Now” button to sync Salesforce with Chargebee at the same moment to setup all the data from Chargebee. By clicking “Sync Hourly” you can sync Salesforce with Chargebee at every hour automatically.

  1. Chargebee Setting


And now save the setting of Address Requirements as if there is any address required at Chargebee side then you have to make it as ON in the Chargebee Setting in Salesforce.

  1. Fill in the email address in the 'Email Address to Send Error Report' field.

  2. To display the image of your organization on Payment Form you need to select the image from “Payment Form Logo” field. Also, you first need to add the image in “Documents”.

  3. Fill in “Payment Form Page Header” to display the header of the form.

  4. Fill in “Payment Form Page Footer(Line 1)” and “Payment Form Page Footer(Line 2)” fields to fill the address related information.

  5. Fill in “Payment Form Terms and Conditions” field to display the organization's terms & conditions. For this, you need to first upload a text document in the “Chargebee” folder in DOCUMENTS.

  6. Click on Save.

For Chargebee Address Requirements in Chargebee account go to SETTINGS -> SITE SETTINGS-> SITE INFO and check for Billing / Card Address Requirements.

Here you can verify the Address requirements setting and can change the setting as needed.

For this make the changes in Salesforce as shown below:

Webhook Setting


If you want to sync for every operation (e.g subscription creation or update, transaction or invoice creation etc.) from Chargebee to Salesforce, you need to update your webhook URL in Chargebee.

For this you need to create a public site in Salesforce if you do not have one already.

Setting Up the Force.com Site 


  1. To create a site click Setup => Develop => Sites
  1. On the Sites page, enter a domain name, then click Check Availability to verify that the domain name has not yet been used.
  1. Once you choose a domain name that is available, select the box to indicate that you have read and accepted the Site Terms of Use and then click Register My Force.com Domain.

  2. Enter all the Information and use “Chargebee” as Active Site Home page.

  1. Select Active and click on Save.

  2. Now click on the Site Label.

  1. On the resulting Site Details page, click Edit in the Site Visualforce Pages area if chargeb.chargebee is not already in Site Visualforce Pages area.
  1. On the resulting Enable Visualforce Page Access page, select chargeb.chargebee and use the Add arrow to move to the Enabled Visualforce Pages. Click Save.
  1. Now click on Public Access Settings.
  1. Then, on the profile page, scroll to the Enable Apex Class Access section of the screen and click Edit.
  1. On the resulting Enable Apex Class Access page, select chargeb.chargebee and use the Add arrow to move to the Enabled Apex Classes. Click Save.

Your Salesforce Site is now created and your webhook URL for Chargebee would be:

If your domain name contains the word"secure,” then maintain that in your Event Notification URL. For example, if your domain is:

Then your webhook URL would be:

Note your webhook URL will be in the format:

{Your Default Web Address from your Site}/services/apexrest/chargebee_webhook

Note: If you already have a Salesforce Public Site and do not want to create a new one then you just need to add “Chargebee” Visualforce page and class in site setting and can use this site as above.

Webhook Setting in Chargebee 


To add the URL in Chargebee, go to “Settings > API and Webhooks > Webhook Settings” and enter the URL in the “Webhook URL” field.

Click on Test URL and check if you are are receiving an OK response. If you get an OK, then click on Update Webhook URL button to save the URL.

Related Articles 

Custom field mapping in Salesforce
Why deals are being automatically closed won in Salesforce?
Salesforce - Subscription ID not being passed to the opportunity page
Is it possible for Salesforce to use read-only API key for syncronization?
Contract terms are enabled in Chargebee but they are not visible on CB subscription - Salesforce
How to create/update subscription using Salesforce Flow Builder?
How can I add CB quotes as a tab in Salesforce?
Subscription creation on renewal opportunity
Sync Rule for Opportunities in Salesforce: Allow Chargebee to update the opportunity products in Salesforce with subscription's products in Chargebee setting
Salesforce- populate Customer.Billing_Address.Company
Business Entity is not showing up for selection in Chargebee Settings of Salesforce
Salesforce plugin for Chargebee - User Guide
What data is synchronized from Chargebee to MailChimp?
What is SKU Level Commission?
What does Chargebee + Moxtra do?
Are refunds passed back to Refersion when they take place in Chargebee?
Where can I find documentation about Chargebee Zapier integration?
Setting up the integration in Refersion
Will Chargebee create duplicate records in Intercom?
How to integrate Zendesk with Chargebee?
How to integrate ActiveCampaign with Chargebee?
What are the prerequisites for Salesforce integration?
Salesforce Error - Chargebee site linked with the account is different from Pricebook’s Chargebee site
Connection Error for Salesforce - Invalid domain error
What are the prerequisites for address validation in Avalara integration?
Why sales tax is still being charged in spite of Customer Tax Exemption using Avalara integration?
Hubspot - Customer not synced error
How to sync additional fields from new HubSpot → Chargebee?
HubSpot Company → Chargebee Customer - New hubspot integration
Integrating Chargebee with Tapfiliate
"Access Denied: OP_UPSERT on chargebeeapps__CB_Subscription__c" - SalesForce error
Enabling Avalara as your Mode of Tax Calculation for EU region
Was this article helpful?
Loading…