4.6.1 Chargebee Configuration

NOTE: These steps are only for the SAAS Extended versions

  1. Go to https://www.chargebee.com/trial-signup/ and create a new account in Chargebee and verify your email address.

  2. After that, you can add your domain name in the CHARGEBEE_SITE in the form field

  1. Then click on settings - configure Chargebee - then click on API-Keys as shown in the below image.

  1. Then in the form field add CHARGEBEE_API_KEY and CHARGEBEE_PUBLISH_KEY as shown in the image below.

4.6.1.1 Set Webhooks

  1. After setting the API key, click on Webhooks and create the Webhook button in the configure Chargebee tab as shown in the image below.

  1. In open dialog box add the Webhook name anything. Then in the Webhook URL add like '{{your_domain}}/api/v2/webhook2'. In Event Send Select All Events and then click on create to create a Webhook.

4.6.1.2 Set Currency

  1. Click on settings - configure Chargebee - currencies as shown in the below image.

  1. Click on Add Currencies button

  1. After that select 'USD' in currency and then click 'I’ll let Chargebee set it for me' option and then click on Add Currency button.

4.6.1.3 Set Payment Gateway

  1. For set Payment GateWay Click on setting - Payment Gateways as shown in below image. Then Set your payment gateway as per your requirement. You can refer this doc for set payment gateway https://www.chargebee.com/docs/2.0/gateway_settings.html

4.6.1.4 Set Custom Field

  1. For set custom field click on setting - configure Chargebee - Custom fields as shown in the image below.

  1. Then click on customer and single-line text as shown in below image

  1. Then add 'Alianhub email' and click on the create & save button as shown in the image.

  1. Refer to the provided table for what should be the value to be added in the custom fields.

Field LabelAPI Name

domain link

cf_domain_link

customer_Mongo_id

cf_customer_Mongo_id

Alianhub email

cf_alianhub_email

Company id

cf_company_id

GSTIN

cf_gstin

Selected Plan

cf_selected_plan

  1. Now follow the same steps and create an custom field for 'domain link', 'Company id', 'GSTIN', 'customer_Mongo_id' after create all custom field it looks like below image.

  1. After that click Subscription Tab and click on single-line text as shown in below image

  1. Now add a custom field for 'Company id' and 'Selected Plan'. After create both custom field it looks like below image.

Last updated