Migration
If you are migrating your Chargebee site from Product Catalog 1.0 to 2.0, the Salesforce integration package cannot be readily migrated. Contact [email protected] to perform the migration.
Add Chargebee UI elements manually
The following user interface items need to be added to the Page Layouts of various Salesforce objects first:
Editing fields on pages
If you edit fields on Salesforce pages, the changes are not synced to Chargebee. The only exception is the Account object whose data can be pushed using the Create/Update Chargebee Customer action.
Available under: Account
Description
Pushes the account information into a Chargebee customer record as explained in the Sales Driven flow. If the account has not been mapped to a customer in Chargebee then a new customer record is created in Chargebee first. You can also automate this process for any account by selecting the Sync with Chargebee checkbox on its page layout. Selecting the box immediately triggers this operation and also triggers it for every update made to the account thereafter. Clear the checkbox to stop the triggers from firing.
After the first time you use the Create/Update Chargebee Customer option to update a particular Chargebee Customer, updating it thereafter overwrites the customer record in Chargebee with the new inputs from the Salesforce account even if it is more recent than that in the Salesforce account.
Multiple Chargebee sites
If multiple Chargebee sites have been connected to Salesforce, then on clicking Create/Update Chargebee Customer, you will be prompted to choose one of them to sync to.
Available under: Account
Account hierarchy must be enabled in Chargebee for this action to work.
This action sets the account hierarchy in Chargebee for a pair of customers, in accordance with how it has been set for the accounts in Salesforce. If any of the pair of accounts have not been synced to Chargebee before, this action syncs them first before setting the hierarchy. You must invoke this action from the child account. If you want to set a hierarchy in Chargebee that involves multiple customer records, you must build it from the bottom, linking one parent after another.
Viewing the Hierarchy
If the account hierarchy has already been set in Chargebee, the action displays the currently set hierarchy in Chargebee.
When setting the hierarchy in Chargebee as described above, you must also choose the invoice owner and payment owner for the subscriptions created for the child account. The following options are available:
If a hierarchy is already set in Chargebee you can also use this feature to unlink it.
Available under: Account
Sends an email via Chargebee to the account prompting them to update their payment method. The email contains a link that the customer can follow to enter their payment method details which is then stored by Chargebee for later payments.
When multiple Chargebee sites are connected…
This operation will be invoked for the Chargebee site that the account has been mapped to.
Using Account Hierarchy in Chargebee
If payments for the customer are made by another in Chargebee, ensure that this action is invoked in Salesforce from the account which corresponds to the paying customer.
Available under: Account
This action allows a Salesforce user to directly update the payment method on behalf of the customer in Chargebee. The payment method is captured in a PCI DSS compliant modal or page.
When multiple Chargebee sites are connected…
This operation will be invoked for the Chargebee site that the account has been mapped to.
Using Account Hierarchy in Chargebee
When payments for the customer are made by another in Chargebee, ensure that this action is invoked in Salesforce from the account which corresponds to the paying customer.
Available under: Account
This operation is used to invoice any unbilled charges that may be present for the Chargebee customer record mapped to the account.
When multiple Chargebee sites are connected…
This operation will be invoked for the Chargebee site that the account has been mapped to.
Available under: Opportunity
This action is used to add Chargebee items (plan, addons, and charges) and coupons to the opportunity.
Caution
We recommend that you use Manage CB Products instead of Add Products or Edit Products to insert Chargebee products into opportunities as the latter are incompatible with certain Chargebee features such as:
If you have multiple currencies enabled, ensure that the Opportunity Currency field has been set to the right currency. The available options in the next steps depend on the opportunity currency.
The Chargebee product catalog is configured with product families, plans, addons, charges with prices set for the currencies and billing frequencies as appropriate.
Enable price overriding to allow users to change the price of items in the product catalog when adding or updating them in a subscription.
If the opportunity is for a new subscription, then add products as follows:
From an opportunity that doesn't have a subscription attached, click on Manage CB Products.
Select New Subscription from the Manage Products For dropdown.
Under Family Details, select a Product Family(product-families.html) from the dropdown. The plans, addons, and charges available in the next steps depend on the Product Family selected.
Enter the Plan Details:
Enter the details for Addons:
Enter the details for Charges:
Once a plan has been selected, any charges that have been configured to apply automatically along with it are displayed in this section.
You can change the unit price for the charge provided each of the following conditions hold true:
If the pricing model is anything other than flat fee, you can input the Quantity as well.
Under Charge customers, select the event at which the charge should be applied to the subscription.
Under Apply charges, select if you want to have the charge applied every time the event occurs or Once.
Under Number of days of service provided, select the number of days of service period for the charge.
To remove a charge, click the Remove link seen on the right side of the charge details.
Use the Select a coupon dropdown and apply any of the coupons available. Multiple coupons can be applied.
Click Add Products to update the opportunity products with the details selected.
Available under: Account
This action creates a subscription against the Chargebee customer mapped to the account. Subscriptions can also be created from quotes directly by converting them.
When multiple Chargebee sites are connected…
This operation will be invoked for the Chargebee site that the account has been mapped to.
If the account has never been synced to Chargebee then the Create/Update Chargebee Customer workflow kicks in automatically.
Choose an opportunity
Choose a Subscription Id for the subscription. When not entered, it is auto-generated by Chargebee.
Select a Product Family. The plans, addons, and charges available in the next steps depend on the product family selected.
Enter the Plan Details:
Enter the details for Addons:
Enter the details for Charges:
Once a plan has been selected, any charges that have been configured to apply automatically along with it are displayed in this section.
You can change the unit price for the charge provided each of the following conditions hold true:
If the pricing model is anything other than flat fee, you can input the Quantity as well.
Under Charge customers, select the event at which the charge should be applied to the subscription.
Under Apply charges, select if you want to have the charge applied every time the event occurs or Once.
Under Number of days of service provided, select the number of days of service period for the charge.
To remove a charge, click the Remove link seen on the right side of the charge details.
Use the Select a coupon dropdown and apply any of the coupons available. Multiple coupons can be applied.
Provide the Billing details:
Select the Apply contract terms to this subscription checkbox to enable contract terms. On selecting the checkbox, you are presented with options to override the default contract terms settings that have been configured for the Chargebee site.
Clear Ship to billing address checkbox to enter a shipping address that's different from the billing address. The shipping address in the Account is prefilled and you can edit as needed.
Invoicing Options: When charges are raised immediately on subscription creation, the following options determine how they're handled:
Once the subscription is created in Chargebee, it is immediately synced back into Salesforce as a record under the CB Subscription custom object. This sync can take a few minutes. The opportunity – if one is chosen in step 3 above – is also updated.
Using Account Hierarchy in Chargebee
If the customer record linked to the contact is part of a hierarchical account relationship in Chargebee, then using this action will cause erroneous behavior. Always use the Create Subscription action for such cases.
When on the Create Subscription page, you have the alternative of enabling the customer to checkout and pay for the subscription themselves. This is done via the Send Checkout Link button.
Fill the create subscription form and click the Send Checkout Link button at the bottom.
Edit the subject and the body of the email. Note that the checkout link is inserted into the body of the email.
Click Send. Sent emails can be seen on the Activity tab for the opportunity, contact and account in Salesforce.
The customer can now click on the checkout link and pay for the subscription. The shipping address specified in the Create Subscription page is prefilled for the customer on the checkout page. When the subscription is created in Chargebee on checkout, the address is attached to it.
The subscription once created, is reflected in Salesforce when the next sync is run.
No offline payments
The Send Checkout Link workflow signs up the customer using Chargebee Checkout. The subscription is created once the payment is made successfully. There is no option for the customer to defer payments and make them offline later.
If you wish to keep charges unbilled for the customer then instead of using Send Checkout Link, select the Add to unbilled charges option on the Create Subscription form instead and click on Create New Subscription.
Available under: Opportunity
This action allows you to create/change a subscription from an opportunity. You can have this operation trigger automatically for won opportunities by using setting 3 under opportunities for Opportunities and Subscriptions.
Caution
To add/edit opportunity products before performing this action, we recommend that you use Manage CB Products instead of Add Products or Edit Products as the latter are incompatible with certain Chargebee features such as:
When multiple Chargebee sites are connected…
This operation will be invoked for the Chargebee site that the account has been mapped to.
Once the subscription is created/updated in Chargebee, it is immediately synced back into Salesforce as a record under the CB Subscription custom object. This sync can take a few minutes.
Once you have added the Product Families using the Manage CB Products option follow the steps below to create new subscriptions for your Opportunity:
Available under: CB Subscription
This action changes the time/date the next renewal of the subscription happens.
Choosing to prorate will raise prorated charges or credits against the customer record depending on whether the renewal date is postponed or advanced respectively. If prorate is unchecked then no charges or credits are raised for changing the next billing date.
Further, on choosing to prorate, if charges are raised, they may be invoiced immediately or added to unbilled charges, depending on what's chosen under Invoicing Options.
Change next billing date help page.
Available under: CB Subscription
This action adds a one-time charge to the subscription. This option can be quite useful, especially when you come across scenarios where you have to collect payments from customers for goods or services that are not normally included as a part of their subscription model.
Available under: CB Subscription
The Sync Due Invoice Count updates the Due Invoice Count field to the current value.
The Due Invoices Count field in the CB Subscription object shows the total number of invoices that are yet unpaid against the subscription. This field, however, is not updated on any given sync unless the subscription itself has undergone a change since the last sync. So occasionally, invoices may get paid without the field getting updated automatically. Sync Due Invoice Count helps by fetching the current value of the Due Invoice Count field from Chargebee.