Re: [w3c/payment-request] Add ability to request billing address (#749)

@adrianhopebailie, @ianbjacobs, @rsolomakhin: 

Ok, so given feedback in #27 and teleconferences we've had. How about I do: 

 * Rename: `PaymentOptions.requestPayerAddress` -> `PaymentOptions.requestBillingAddress`

 * Drop: `PaymentRequest.payerAddress` and `PaymentResponse.payerAddress`. 

 * Add "redacted" `billingAddress` to Basic Card's event response: https://github.com/w3c/payment-method-basic-card/pull/53  - which is nulled when `requestBillingAddress` is false. Then, when the user changes instrument, the event fires and you get the `billingAddress` but not the card information. The merchant then can call `.updateWith()`. 

 * Lastly, the merchant always gets the billing address in the `PaymentResponse.details` - which they can request adjustments with via `.retry()` 
 
Agree? 

-- 
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/749#issuecomment-412771286

Received on Tuesday, 14 August 2018 06:46:19 UTC