Re: [w3c/payment-request] WIP - very rough sketch of requestShippingAddress() method (#873)

Thank you, @danyao! 
cc @samuelweiler 

To summarize the proposal:

* A new requestShippingAddress() method enables the merchant to request partial shipping address information.
* To incrementally request address data, repeated calls to requestShippingAddress() can be chained with a final promise to compute new details using the address information. A call to updateWith() with the promise chain can be used to update the payment details.
* For full shipping address information, the merchant can still use the requestShipping boolean. This also helps with backwards compatibility.

We have begun discussions [1] about the delegation of the request for shipping addresses to payment handlers. If the current proposal is adopted, that discussion will need to include a mechanism for the browser to request shipping address information from the payment handler in order to respond to the merchant's incremental request.

As @danyao notes, this proposal does not address billing addresses. Note that:

* By default, merchants do not receive billing address information;  they must explicitly request it (via requestBillingAddress).
* The Basic Card specification defines a redact list that intends to provide enough information for payment authorization.
* This proposal does not require changes to Basic Card.

[1] https://github.com/w3c/payment-handler/issues/337


-- 
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/payment-request/pull/873#issuecomment-506864905

Received on Friday, 28 June 2019 20:21:14 UTC