This is an experimental technology
Because this technology's specification has not stabilized, check the compatibility table for usage in various browsers. Also note that the syntax and behavior of an experimental technology is subject to change in future versions of browsers as the specification changes.
The PaymentAddress
interface of the Payment Request API stores address information.
Properties
PaymentAddress.country
Read only- The Common Locale Data Repository region code. For example, US, GB, CN, etc.
PaymentAddress.addressLine
Read only- An array of strings describing the address. The exact size and content varies by country or location and can include, for example, a street name, house number, apartment number, rural delivery route, descriptive instructions, or post office box number.
PaymentAddress.region
Read only- The top level administrative subdivision of the country, for example, a state, province, oblast, or prefecture.
PaymentAddress.city
Read only- The city or town portion of the address.
PaymentAddress.dependentLocality
Read only- The dependent locality or sublocality within a city, for example, a neighborhood, borough, district, or UK dependent locality.
PaymentAddress.postalCode
Read only- A code used by a jurisdiction for mail routing, for example, the ZIP code in the United States or the PIN code in India.
PaymentAddress.sortingCode
Read only- A postal sorting code such as is used in France.
PaymentAddress.languageCode
Read only- The BCP-47 language code for the address, used to determine the field separators and the order of fields when formatting the address for display.
PaymentAddress.organization
Read only- The name of the organization, firm, company, or institution at the payment address.
PaymentAddress.recipient
Read only- The name of the recipient, purchaser, or contact person at the payment address.
PaymentAddress.careOf
Read only- The name of an intermediary party or entity responsible for transferring packages between the postal service and the recipient.
PaymentAddress.phone
Read only- The telephone number of the recipient or contact person.
Methods
None.
Specifications
Specification | Status | Comment |
---|---|---|
Payment Request API The definition of 'PaymentAddress' in that specification. |
Working Draft | Initial definition. |
Browser Compatibility
Feature | Chrome | Edge | Firefox (Gecko) | Internet Explorer | Opera | Safari (WebKit) |
---|---|---|---|---|---|---|
Basic support |
53.0 |
(Yes) | ? | ? | ? | ? |
Feature | Android | Android Webview | Edge | Firefox Mobile (Gecko) | Firefox OS | IE Mobile | Opera Mobile | Safari Mobile | Chrome for Android |
---|---|---|---|---|---|---|---|---|---|
Basic support | No support | 53.0 | (Yes) | ? | ? | ? | ? | ? | 53.0 |