This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
The country
read-only property of the PaymentAddress
interface returns a string containing the Common Locale Data Repository (CLDR) region code for the user's country, for example, US, GB, CN, JP, etc.
var paymentCountry = PaymentAddress.country;
Specification | Status | Comment |
---|---|---|
Payment Request API The definition of 'paymentaddress' in that specification. | Candidate Recommendation | Initial definition. |
Feature | Chrome | Edge | Firefox (Gecko) | Internet Explorer | Opera | Safari (WebKit) |
---|---|---|---|---|---|---|
Basic support | 61 | (Yes) | ? | ? | No support | ? |
Feature | Android Webview | Chrome for Android | Edge | Firefox Mobile (Gecko) | Firefox OS | IE Mobile | Opera Mobile | Safari Mobile |
---|---|---|---|---|---|---|---|---|
Basic support | No support | 53 | (Yes) | ? | ? | ? | No support | ? |
© 2005–2018 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/PaymentAddress/country