Open sideshowbarker opened 8 years ago
Which fields would this encompass?
street-address, address-level*, country, country-name, and postcal code?
name/organization too?
Which fields would this encompass?
As far the need for the Payment Request API, it’s data for a shipping address. So anything that would be appropriate in a shipping address.
street-address, address-level*, country, country-name, and postal code?
Yeah, those I think
name/organization too?
Those I’m less sure about but I guess that the name/organization are sometimes needed in shipping address to route the shipped goods to the correct person at the physical address (building/floor/department) the goods are shipped to, then the “full address” would need to include the name/organization too.
I know for a fact that in Switzerland you need to include the name of a person for personal mail.
I know for a fact that in Switzerland you need to include the name of a person for personal mail.
So yeah I think we’d need for it to encompass both name
for the case of shipping to a personal-mail full address and also organization
for the case of shipping to a company full address.
See the discussion at https://github.com/w3c/browser-payment-api/issues/326#issuecomment-262828709.
The Payment Request API has need to represent form data for a full address as a single field rather than spread across a set of multiple fields.
The HTML spec currently has a street-address autofill field which can contain multiple lines of data, but is defined as holding just the street address and not defined as being allowed to contain the city name, country name, postal code, etc., data (for which there are other existing autofill fields).