New in Chargebee: Explore Reveal and understand your payment performance end-to-end.Try Now
Docschargebee docs
HomeBillingPaymentsRevRecGrowthReveal
Support

Product Updates


  • Release Notes

Getting Started


  • Overview
  • Chargebee Billing Data Centers
  • Object Relationship Model
  • Understanding Sites
  • Chargebee Tech Glossary
  • Articles and FAQ

Implementing Chargebee


  • Implementation Guide
  • Go-live Checklist
  • Articles and FAQ

AI in Chargebee


  • Chargebee Agents
  • Chargebee Copilot
  • Chargebee MCP Server (Model Context Protocol)

Developer Resources


  • Developer Resources Overview
  • Articles and FAQ

Product Catalog


  • Product Catalog Overview
  • Coupons
  • Articles and FAQ

Subscriptions


  • Working with Subscriptions
  • Billing
  • Orders
  • Articles and FAQ

Customers


  • Managing Customers
  • Account Hierarchy
  • Email Notifications
  • Branding
  • Configure Multiple Languages
  • Articles and FAQ

Entitlements


  • Entitlements Overview
  • Features Overview
  • Feature Management
  • Managing Product Entitlements
  • Subscription Entitlements
  • Customer Entitlements
  • Grandfathering Entitlements
  • Articles and FAQ

Usage Based Billing


  • Understanding Usages
  • Setting up Usage Based Billing
  • Usage Alerts
  • Metered Billing
  • Articles and FAQ

Chargebee CPQ


  • Chargebee CPQ
  • Chargebee CPQ for Salesforce
  • Chargebee CPQ for HubSpot

Invoices, Credit Notes, and Quotes


  • Invoices
  • Credit Notes
  • Quotes [Legacy]
  • Transactions
  • Articles and FAQ

Taxes


  • Overview
  • Configuring Taxes
  • Country-specific Taxes
  • Articles and FAQ

Hosted Capabilities


  • Overview
  • Hosted Checkout
  • Hosted Self-Serve Portal
  • Hosted Pages Features
  • Additional Hosted Pages
  • Payment Components
  • Pricing Table
  • Managing Payments with Chargebee.js
  • Mobile-Optimized Hosted Pages
  • Articles and FAQ

Site Configuration


  • Users & Roles
  • Custom Fields & Metadata
  • Approvals
  • Mandatory Fields
  • File Attachments & Comments
  • Advanced Filter Options
  • Multicurrency Pricing
  • Multi-decimal Support
  • Configuring Reason Codes
  • Events and Webhooks
  • API Keys
  • Time Zone
  • Time Machine
  • Transfer Configurations
  • Articles and FAQ

Multi Business Entity


  • Multi Business Entity Overview
  • Customer Transfer Overview
  • Articles and FAQ

Mobile Subscriptions


  • Overview
  • Omnichannel Subscriptions
  • Omnichannel One-Time Orders
  • Mobile Subscriptions (Legacy)

Reports and Analytics


  • RevenueStory
  • Home Dashboard
  • Frequently Asked Questions
  • FAQs for Classic Reports Sunset
  • Articles and FAQ

Integrations


  • Sales
  • Customer Support and Success
  • Finance
  • Tax
  • Marketing
  • Stitch
  • Collaboration
  • Contract Management
  • Ecommerce Management
  • Articles and FAQ

Data Privacy & Security


  • Two Factor Authentication
  • SAML Single Sign-On
  • System for Cross-Domain Identity Management (SCIM)
  • EU-GDPR
  • Consent Management
  • Personal Data Management
  • Compliance Certificates
  • HIPAA Guidelines
  • PCI Recommendations and Integration Types
  • Articles and FAQ

Data Operations


  • Bulk Operations
  • Migration
  • Articles and FAQ
  1. Billing
  2. Integrations
  3. Articles and FAQ
  4. Salesforce
  1. Billing
  2. Integrations
  3. Articles and FAQ
  4. Salesforce

Salesforce plugin for Chargebee - Installation Guide

Problem Statement

This article helps you understand salesforce plugin for chargebee - installation guide.

Solution

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:
image
  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.

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

· Admins Only

· All users

· Specify your own settings

image

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

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

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.

image
  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

image

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

image

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.

image
  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.

image

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

image

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
image
  1. On the Sites page, enter a domain name, then click Check Availability to verify that the domain name has not yet been used.
image
  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.

image
  1. Select Active and click on Save.

  2. Now click on the Site Label.

image
  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.
image
  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.
image
  1. Now click on Public Access Settings.
image
  1. Then, on the profile page, scroll to the Enable Apex Class Access section of the screen and click Edit.
image
  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.
image
image

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.

image

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

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

Show more

Was this article helpful?