Re: [w3c/browser-payment-api] Provide better mapping between PaymentAddress and HTML5 autofill (#505)

The field labelled "sorting code" is not just used for that, but is country specific: in some countries it manifests as a post office indicator.

Comments for this field should be:
// This corresponds to the SortingCode sub-element of the xAL
// PostalServiceElements element. Use is very country-specific. Where it is
// used, the value is either a string like "CEDEX", optionally followed by a
// number (e.g. "CEDEX 7"), or just a number alone, representing the "sector
// code" (Jamaica), "delivery area indicator" (Malawi) or "post office
// indicator" (e.g. Côte d'Ivoire).

Note that address-level1 and 2 does NOT map to the levels used for administrative purposes in a country, but in an *address*. For instance, for the US, level1 would be state, and level2 would be city/post-town NOT county. In Spain, the top-level admins e.g. Catalonia are not in an address, so level1 is the province, which is.

-- 
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/505#issuecomment-292550375

Received on Friday, 7 April 2017 14:23:50 UTC