PaymentAddress

Experimental

这是一个实验中的功能
此功能某些浏览器尚在开发中,请参考浏览器兼容性表格以得到在不同浏览器中适合使用的前缀。由于该功能对应的标准文档可能被重新修订,所以在未来版本的浏览器中该功能的语法和行为可能随之改变。

The PaymentAddress interface of the Payment Request API stores address information.

Properties

PaymentAddress.country (en-US) 只读  
The Common Locale Data Repository region code. For example, US, GB, CN, etc.
PaymentAddress.addressLine (en-US) 只读
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 (en-US) 只读
The top level administrative subdivision of the country, for example, a state, province, oblast, or prefecture.
PaymentAddress.city (en-US) 只读
The city or town portion of the address.
PaymentAddress.dependentLocality (en-US) 只读
The dependent locality or sublocality within a city, for example, a neighborhood, borough, district, or UK dependent locality.
PaymentAddress.postalCode (en-US) 只读
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 (en-US) 只读
A postal sorting code such as is used in France.
PaymentAddress.languageCode (en-US) 只读
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 (en-US) 只读
The name of the organization, firm, company, or institution at the payment address.
PaymentAddress.recipient (en-US) 只读
The name of the recipient, purchaser, or contact person at the payment address.
PaymentAddress.careOf 只读   This is an obsolete API and is no longer guaranteed to work.
The name of an intermediary party or entity responsible for transferring packages between the postal service and the recipient.
PaymentAddress.phone (en-US) 只读
The telephone number of the recipient or contact person.

Methods

None.

Specifications

Specification Status Comment
Payment Request API
PaymentAddress
Candidate Recommendation Initial definition.

Browser Compatibility

We're converting our compatibility data into a machine-readable JSON format. This compatibility table still uses the old format, because we haven't yet converted the data it contains. Find out how you can help! (en-US)
Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari (WebKit)
Basic support

53.0

? ? ? ?
Feature Android Android Webview Firefox Mobile (Gecko) Firefox OS IE Mobile Opera Mobile Safari Mobile Chrome for Android
Basic support 未实现 53.0 ? ? ? ? ? 53.0