Pre-set country code

drbboyd

Member
I only do business in the United States and I want the country to automatically select United states. How do I do that?
 

Attachments

  • Screenshot_219.jpg
    Screenshot_219.jpg
    30.8 KB · Views: 205

drbboyd

Member
Thanks for moving to the right group, I guess. An answer would have been nicer. I don't even know what function I am looking for!
 

Pankaj

Administrator
Staff member
Pro Member
Pass value in URLs in the same fashion on any checkout page of Pabbly Subscription Billing and you will get the results that you want.


1619261696511.png
 
P

Pabblymember14

Guest
I only do business in the United States and I want the country to automatically select United states. How do I do that?
Hi,

The codes for passing the country and state as auto-fill on the checkout page -

?country=us&state_code=CA

Where the "us" is the country code for the United States and "CA" is the state code for California.

Just add the above code on the checkout page URL and the country and state will be auto-filled and replace the state code as per your need.

Here's the example of my testing checkout page link - https://payments.pabbly.com/subscri...psb-tier-17-24-month?country=us&state_code=CA

You can check the list of USA state codes from here - https://abbreviations.yourdictionary.com/articles/state-abbrev.html

I hope the above information helps.
 
Last edited by a moderator:
Top