Re: [w3c/browser-payment-api] `country` vs `sortingCode` (#434)

1. PaymentRequest's **sortingCode**:

Sorting code is also known as CEDEX. See [Wikipedia entry](https://en.wikipedia.org/wiki/Postal_codes_in_France#CEDEX) for some background.

The **sortingCode** field would be non-blank only for countries that support it. Try an address in France, for example. The address editor UI in Chrome will show the sorting code field in that case.

2. PaymentRequest's **country**:

The **country** field in PaymentRequest is equivalent to the **countryCode** field in Apple Pay JS.

3. Apple Pay JS's **country**:

The **country** field in Apple Pay JS does not have an equivalent field in PaymentRequest. If a merchant needs to map the CLDR country code to a country name, they would need to use a helper library.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/browser-payment-api/issues/434#issuecomment-282008359

Received on Thursday, 23 February 2017 14:41:26 UTC