4.7.1 Chargebee Configuration
Last updated
Last updated
NOTE: These steps are only for the SAAS Extended versions
Go to https://www.chargebee.com/trial-signup/ and create a new account in Chargebee and verify your email address.
After that, you can add your domain name in the CHARGEBEE_SITE in the form field
Then click on settings - configure Chargebee - then click on API-Keys as shown in the below image.
Then in the form field add CHARGEBEE_API_KEY and CHARGEBEE_PUBLISH_KEY as shown in the image below.
After setting the API key, click on Webhooks and create the Webhook button in the configure Chargebee tab as shown in the image below.
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.
Click on settings - configure Chargebee - currencies as shown in the below image.
Click on Add Currencies button
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.
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
For set custom field click on setting - configure Chargebee - Custom fields as shown in the image below.
Then click on customer and single-line text as shown in below image
Then add 'Alianhub email' and click on the create & save button as shown in the image.
Refer to the provided table for what should be the value to be added in the custom fields.
Field Label | API 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 |
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.
After that click Subscription Tab and click on single-line text as shown in below image
Now add a custom field for 'Company id' and 'Selected Plan'. After create both custom field it looks like below image.