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
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!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 |
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论