This article covers
How to add subscription or a customer-specific detail to emails in Chargebee?
How to add payment creditor info to an email?
Where are the merge(variable) fields listed in the Chargebee app?
Summary
Merge fields in Email notifications are used to personalize emails with your customer’s information present in Chargebee. To add the information to your notifications template you can use the Mergevars.
You can insert these mergevars in the body of the email to display the information. Mergevars that render a link: Example, Pay Now can be embedded as a custom button.
To use Merge Fields for your Email Notifications, Go to Configure Chargebee > Email Notifications > Select the template > Click on View all Merge Fields and select one notification to obtain the merge field.
To access the Mergevar fields use this sample format link: https://yoursite/notifications/mergevars
How to insert merge field as a link
Click the "+" icon to add a section where you want to include the field as a link
Click the “{}” to the right to select the field name(variable) from the list. (The changes made are automatically saved as drafts)
Click the Publish (top right) to make it available for emails.
You can also choose to use a button to embed the link, this way you can have a tidy button tucking away the raw link.
How to insert merge field as a custom button
Click the “View All Merge Fields” button to the bottom left of the page.
Select an option from the list displayed and click “+”
Copy the link for example, to add a unique addon id select {{addon.id}} link
Now, Go back to Editing the email template
Click “+” > Add button > Custom button
Give Button a name
Paste the {{addon.id}} in Link field and Publish.
Related articles and Documentation
Is there a way to include a link to update the payment details in the email notifications (V1)?
How to add Plan/Addon/Coupon specific contents in the Invoice Receipt email?