Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

Revision 1117061 of PaymentAddress

  • Revision slug: Web/API/PaymentAddress
  • Revision title: PaymentAddress
  • Revision id: 1117061
  • Created:
  • Creator: dgashmdn
  • Is current revision? No
  • Comment

Revision Content

{{SeeCompatTable}}{{APIRef("Payment Request API")}}

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

Properties

{{domxref('PaymentAddress.country')}} {{readonlyinline}} 
The Common Locale Data Repository region code. For example, US, GB, CN, etc.
{{domxref('PaymentAddress.addressLine')}} {{readonlyinline}}
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.
{{domxref('PaymentAddress.region')}} {{readonlyinline}}
The top level administrative subdivision of the country, for example, a state, province, oblast, or prefecture.
{{domxref('PaymentAddress.city')}} {{readonlyinline}}
The city or town portion of the address.
{{domxref('PaymentAddress.dependentLocality')}} {{readonlyinline}}
The dependent locality or sublocality within a city, for example, a neighborhood, borough, district, or UK dependent locality.
{{domxref('PaymentAddress.postalCode')}} {{readonlyinline}}
A code used by a jurisdiction for mail routing, for example, the ZIP code in the United States or the PIN code in India.
{{domxref('PaymentAddress.sortingCode')}} {{readonlyinline}}
A postal sorting code such as is used in France.
{{domxref('PaymentAddress.languageCode')}} {{readonlyinline}}
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.
{{domxref('PaymentAddress.organization')}} {{readonlyinline}}
The organization, firm, company, or institution at this address.
{{domxref('PaymentAddress.recipient')}} {{readonlyinline}}
The name of the recipient or contact person.
{{domxref('PaymentAddress.careOf')}} {{readonlyinline}}
The name of an intermediary party or entity responsible for transferring packages between the postal service and the recipient.
{{domxref('PaymentAddress.phone')}} {{readonlyinline}}
The phone number of the recipient or contact person.

Methods

None.

Specifications

Specification Status Comment
{{SpecName('Payment','#paymentaddress-interface','PaymentAddress')}} {{Spec2('Payment')}} Initial definition.

Browser Compatibility

{{CompatibilityTable}}
Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari (WebKit)
Basic support

{{CompatChrome(53.0)}}

{{CompatUnknown}} {{CompatUnknown}} {{CompatUnknown}} {{CompatUnknown}}
Feature Android Android Webview Firefox Mobile (Gecko) Firefox OS IE Mobile Opera Mobile Safari Mobile Chrome for Android
Basic support {{CompatNo}} {{CompatChrome(53.0)}} {{CompatUnknown}} {{CompatUnknown}} {{CompatUnknown}} {{CompatUnknown}} {{CompatUnknown}} {{CompatChrome(53.0)}}

Revision Source

<p>{{SeeCompatTable}}{{APIRef("Payment Request API")}}</p>

<p>The <strong><code>PaymentAddress</code></strong> interface of the the <a href="/en-US/docs/Web/API/Payment_Request_API">Payment Request API</a>&nbsp;stores address information.</p>

<h2 id="Properties">Properties</h2>

<dl>
 <dt>{{domxref('PaymentAddress.country')}} {{readonlyinline}}&nbsp;</dt>
 <dd>The Common Locale Data Repository region code. For example, US, GB, CN, etc.</dd>
 <dt>{{domxref('PaymentAddress.addressLine')}}&nbsp;{{readonlyinline}}</dt>
 <dd>An array of strings describing the address. The exact size and content varies by country or location and can include,&nbsp;for example, a street name, house number, apartment number, rural delivery route, descriptive instructions, or post office box number.</dd>
 <dt>{{domxref('PaymentAddress.region')}}&nbsp;{{readonlyinline}}</dt>
 <dd>The top level administrative subdivision of the country, for example,&nbsp;a state,&nbsp;province,&nbsp;oblast, or prefecture.</dd>
 <dt>{{domxref('PaymentAddress.city')}}&nbsp;{{readonlyinline}}</dt>
 <dd>The city or town portion of the address.</dd>
 <dt>{{domxref('PaymentAddress.dependentLocality')}}&nbsp;{{readonlyinline}}</dt>
 <dd>The dependent locality or sublocality within a city, for example, a&nbsp;neighborhood, borough, district, or UK dependent locality.</dd>
 <dt>{{domxref('PaymentAddress.postalCode')}}&nbsp;{{readonlyinline}}</dt>
 <dd>A code used by a jurisdiction for mail routing, for example, the ZIP code in the United States or the PIN code in India.</dd>
 <dt>{{domxref('PaymentAddress.sortingCode')}}&nbsp;{{readonlyinline}}</dt>
 <dd>A postal sorting code such as is used in France.</dd>
 <dt>{{domxref('PaymentAddress.languageCode')}}&nbsp;{{readonlyinline}}</dt>
 <dd>The BCP-47 language code for the address,&nbsp;used to determine the field separators and the order of fields when formatting the address for display.</dd>
 <dt>{{domxref('PaymentAddress.organization')}}&nbsp;{{readonlyinline}}</dt>
 <dd>The organization, firm, company, or institution at this address.</dd>
 <dt>{{domxref('PaymentAddress.recipient')}}&nbsp;{{readonlyinline}}</dt>
 <dd>The name of the recipient or contact person.</dd>
 <dt>{{domxref('PaymentAddress.careOf')}}&nbsp;{{readonlyinline}}</dt>
 <dd>The name of an intermediary party or entity responsible for transferring packages between the postal service and the recipient.</dd>
 <dt>{{domxref('PaymentAddress.phone')}}&nbsp;{{readonlyinline}}</dt>
 <dd>The phone number of the recipient or contact person.</dd>
</dl>

<h2 id="Methods">Methods</h2>

<p>None.</p>

<h2 id="Specifications">Specifications</h2>

<table class="standard-table">
 <tbody>
  <tr>
   <th scope="col">Specification</th>
   <th scope="col">Status</th>
   <th scope="col">Comment</th>
  </tr>
  <tr>
   <td>{{SpecName('Payment','#paymentaddress-interface','PaymentAddress')}}</td>
   <td>{{Spec2('Payment')}}</td>
   <td>Initial definition.</td>
  </tr>
 </tbody>
</table>

<h2 id="Browser_Compatibility">Browser Compatibility</h2>

<div>{{CompatibilityTable}}</div>

<div id="compat-desktop">
<table class="compat-table">
 <tbody>
  <tr>
   <th>Feature</th>
   <th>Chrome</th>
   <th>Firefox (Gecko)</th>
   <th>Internet Explorer</th>
   <th>Opera</th>
   <th>Safari (WebKit)</th>
  </tr>
  <tr>
   <td>Basic support</td>
   <td>
    <p>{{CompatChrome(53.0)}}</p>
   </td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatUnknown}}</td>
  </tr>
 </tbody>
</table>
</div>

<div id="compat-mobile">
<table class="compat-table">
 <tbody>
  <tr>
   <th>Feature</th>
   <th>Android</th>
   <th>Android Webview</th>
   <th>Firefox Mobile (Gecko)</th>
   <th>Firefox OS</th>
   <th>IE Mobile</th>
   <th>Opera Mobile</th>
   <th>Safari Mobile</th>
   <th>Chrome for Android</th>
  </tr>
  <tr>
   <td>Basic support</td>
   <td>{{CompatNo}}</td>
   <td>{{CompatChrome(53.0)}}</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatChrome(53.0)}}</td>
  </tr>
 </tbody>
</table>
</div>
Revert to this revision