PaymentAddress

实验性: 这是一项实验性技术
在将其用于生产之前,请仔细检查浏览器兼容性表格

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 只读 已弃用

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.

Browser Compatibility

BCD tables only load in the browser