Skip to content

Commit

Permalink
Test short regionCode (#11021)
Browse files Browse the repository at this point in the history
With w3c/payment-request#690 the spec changed
requiring `regionCode` to just be the "code element" of an [[!ISO3166-2]]
country subdivision name (e.g., "CA" for California).
  • Loading branch information
marcoscaceres committed May 16, 2018
1 parent 92a3d3d commit 32a1675
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ <h2>PaymentAddress interface</h2>
<button onclick="
const expectedAddress = {
country: 'AU',
regionCode: 'AU-QLD',
regionCode: 'QLD',
addressLine: '55 test st',
city: 'Chapel Hill',
dependentLocality: '',
Expand All @@ -90,8 +90,10 @@ <h2>PaymentAddress interface</h2>
<dd>55 test st</dd>
<dt>Country</dt>
<dd>Australia</dd>
<dt>Suburb</dt>
<dt>City</dt>
<dd>Chapel Hill</dd>
<dd>State/Region</dd>
<dd>Queensland</dd>
<dt>postal code </dt>
<dd>6095</dd>
<dt>organization</dt>
Expand Down

0 comments on commit 32a1675

Please sign in to comment.