Re: [w3c/payment-request] Clarification: onshippingaddresschange in case of autofill/pre-filled fields (#887)

Hi @crowgames . You can accomplish this by specifying an empty set of `shippingOptions` initially. The browser will ask the user to explicitly select their shipping address, at which point the 'shippingaddresschange' update will be fired with redacted address that is sufficient for shipping price caclulations. Please proceed to populate the `shippingOptions` field in the response to the `shippingaddresschange` event. Ideally you would also designate one of the shipping options `selected: true`, which reduces the number of actions that the user has to perform during checkout. Please see a demo at https://rsolomakhin.github.io/pr/us/

-- 
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/issues/887#issuecomment-563294348

Received on Monday, 9 December 2019 15:33:44 UTC