Introducing the Chargebee CLI

How to rename a payment method on checkout

Problem Statement

You want to edit payment method labels (for example, "Credit card", "Google Pay") on the checkout page or customer portal for additional languages.

Solution

Download the language pack from Settings > Configure Chargebee > Languages. Update payment method labels in hosted_pages_v3.csv (under Internal folder) or hosted_pages_text_configurations.csv (under Optional folder) by editing the Value column (Column B).

For English, you can also edit labels from Settings > Configure Chargebee > Checkout & Self-Serve Portal > Labels. See Configure fullpage fields and labels.

Configuration steps

Step 1: To translate Checkout and Portal button field names, go to Settings > Configure Chargebee > Languages. Download the language pack, translate the values, and upload it on the same page.

Step 2: Unzip the downloaded pack. Navigate to the respective language folder. For payment method labels, go to Internal > hosted_pages_v3.csv (or Optional > hosted_pages_text_configurations.csv for button text).

Note: Language folders use a code name, for example fr-French, en-English, and de-German. See supported locales for more information.

Step 3: Open hosted_pages_v3.csv in an editor and change the relevant field under the Value column, that is, Column B.

In hosted_pages_v3.csv, add the new label in the Value column (Column B). For example: hp_v3.inapp_checkout.credit_card for credit card, hp_v3.pm.google_pay for Google Pay. File mapping: In-app checkout uses hosted pages v3; Full-page checkout uses v4.

For example, to rename the credit card label, enter a value for "hp_v3.inapp_checkout.credit_card". For Google Pay, enter a value for "hp_v3.pm.google_pay". The screenshot highlights the available payment methods. A payment method appears only when it is configured on your site.

Note: You can edit this CSV file in a text editor or in Google Sheets. Save the file with the .csv extension only.

Step 4: Once the translation text is entered, upload the pack (only .zip format is supported)

If there are errors, they are displayed. Review and fix them before you upload the updated folder.

See Configure multiple languages for more information.