PaymentAddress - Web API 接口参考 编辑

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

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

Properties

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

Methods

None.

Specifications

SpecificationStatusComment
Payment Request API
PaymentAddress
Candidate RecommendationInitial 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!
FeatureChromeFirefox (Gecko)Internet ExplorerOperaSafari (WebKit)
Basic support

53.0

????
FeatureAndroidAndroid WebviewFirefox Mobile (Gecko)Firefox OSIE MobileOpera MobileSafari MobileChrome for Android
Basic support未实现53.0?????53.0

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据

词条统计

浏览:62 次

字数:6516

最后编辑:8年前

编辑次数:0 次

    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文