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.
Syntax
var paymentCountry = PaymentAddress.country;
Specifications
Specification | Status | Comment |
---|---|---|
Payment Request API The definition of 'paymentaddress' in that specification. |
Candidate Recommendation | Initial definition. |
Browser Compatibility
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
Feature | Chrome | Edge | Firefox | Internet Explorer | Opera | Safari |
---|---|---|---|---|---|---|
Basic support | 61 | 15 | ? | No | No | ? |
Feature | Android webview | Chrome for Android | Edge mobile | Firefox for Android | Opera Android | iOS Safari | Samsung Internet |
---|---|---|---|---|---|---|---|
Basic support | No | 53 | Yes | ? | No | ? | 6.0 |