New in Chargebee: Explore Reveal and understand your payment performance end-to-end.Try Now

Docschargebeedocs

HomeBillingPaymentsRevRecGrowthReveal
Support

Product Updates


  • Release Notes

Getting Started


  • Overview
  • Chargebee Billing Data Centers
  • Object Relationship Model
  • Understanding Sites
  • Developer Resources
  • Chargebee Tech Glossary
  • Articles and FAQ

Implementing Chargebee


  • Implementation Guide
  • Go-live Checklist
  • Articles and FAQ

AI in Chargebee


  • Chargebee Agents
  • Chargebee Copilot
  • Chargebee MCP Server (Model context protocol)

Product Catalog


  • Product Catalog Overview
  • Coupons
  • Articles and FAQ

Subscriptions


  • Working with Subscriptions
  • Billing
  • Orders
  • Articles and FAQ

Customers


  • Managing Customers
  • Account Hierarchy
  • Email Notifications
  • Branding
  • Configure Multiple Languages
  • Articles and FAQ

Invoices, Credit Notes and Quotes


  • Invoices
  • Credit Notes
  • Quotes [Legacy]
  • Transactions
  • Articles and FAQ

Taxes


  • Overview
  • Configuring Taxes
  • Country-specific Taxes
  • Articles and FAQ

Hosted Capabilities


  • Overview
  • Hosted Checkout
  • Hosted Self-Serve Portal
  • Hosted Pages Features
  • Additional Hosted Pages
  • Payment Components
  • Managing payments with ChargebeeJS
  • Mobile-Optimized Hosted Pages
  • Articles and FAQ

Site Configuration


  • Users & Roles
  • Custom Fields & Metadata
  • Mandatory Fields
  • File Attachments & Comments
  • Advanced Filter Options
  • Multicurrency Pricing
  • Multi-decimal Support
  • Configuring Reason Codes
  • Events and Webhooks
  • API Keys
  • Time Zone
  • Time Machine
  • Transfer Configurations
  • Articles and FAQ

Reports and Analytics


  • RevenueStory
  • Home Dashboard
  • Frequently Asked Questions
  • FAQs for Classic Reports Sunset
  • Articles and FAQ

Integrations


  • Sales
  • Customer Support and Success
  • Finance
  • Tax
  • Marketing
  • Stitch
  • Collaboration
  • Contract Management
  • Order Management
  • Mobile Subscriptions (Legacy)
  • Other Integrations
  • Articles and FAQ

Data Privacy & Security


  • Two Factor Authentication
  • SAML Single Sign-On
  • System for Cross-Domain Identity Management (SCIM)
  • EU-GDPR
  • Consent Management
  • Personal Data Management
  • Compliance Certificates
  • HIPAA Guidelines
  • PCI Recommendations and Integration Types
  • Articles and FAQ

Data Operations


  • Bulk Operations
  • Migration
  • Articles and FAQ
  1. Billing
  2. Hosted Capabilities
  3. Articles and FAQ
  4. APIs
  1. Billing
  2. Hosted Capabilities
  3. Articles and FAQ
  4. APIs

How can I restrict the countries at billing, shipping, and card addresses as a self-serve action?

Problem Statement

You want to know how can I restrict the countries at billing, shipping, and card addresses as a self-serve action.

Scope

How can I restrict the countries at billing, shipping, and card addresses as a self-serve action?

How to restrict the countries on checkout?

How to restrict countries at the shipping addresses on checkout?

How to restrict countries at the card addresses on checkout?

How to restrict countries at the billing addresses on checkout?

How to restrict the countries on the self-serve portal?

How to have a default Billing/Shipping Country in Checkout?

How to change the default country Phone Number Code at Checkout?

Summary

You can allow or restrict specific countries at the billing/shipping/card address page on checkout by navigating to Checkout & Self-Serve Portal> Fields> Billing> Address Fields> Country.

Solution

Billing Address

Follow the below steps to restrict countries at the billing address:

  1. Navigate to Configure Chargebee> Checkout & Self-Serve Portal> Fields> Billing> Address Fields> Country.

  2. Click the Edit icon.

image

Configure Country list

  1. Select All countries available or Include specific countries from the Country list dropdown.

  2. Select the required countries from the dropdown if you have selected Include specific countries in the above step.

  3. Click Apply.

image

If you want to allow existing customers to manage their subscriptions using the self-serve portal, select all countries that you have customers from.

Choose the Default Country

  • Select the default country to be displayed in the billing address fields from the dropdown. The dropdown displays only the countries selected from the Country list.

Set default country code for phone number‌

This can be achieved by modifying the Fields under the Checkout and Self-Serve Portal section and have shared the steps below.

  1. Navigate to Settings > Configure Chargebee > Checkout & Self-Serve Portal > Fields

  2. Account Information > Phone > Edit > Select the option Use the billing address value.

  3. Next, go to the Billing section > enable the Phone option if it is not already enabled

  4. Now go to Address fields > Country > Edit > Set the default country as 'Spain' for example > Apply.

  5. Be sure to Publish the changes.

Now the checkout will show the Phone Number country code as '+34' under the 'Add your Billing Address' section

I have also included this brief video to help guide you on where to make the necessary changes.

[drive_video embed]

  1. Repeat the same steps for restricting countries in the Shipping address by navigating to Configure Chargebee> Checkout & Self-Serve Portal> Fields> Shipping> Address Fields> Country
  2. Repeat the same steps for restricting countries in the Card address by navigating to Configure Chargebee> Checkout & Self-Serve Portal> Fields> Payments> Address Fields> Country

Related Articles

Can I pass Google Analytics parameters along with Chargebee's hosted page URL?
I am collecting the name and email on the checkout page but they don't appear on the subscriptions page. Why?
I cannot allow my customers to checkout without payment details. Why?

Was this article helpful?