Re: [w3c/payment-method-basic-card] Support for fine-grained request for billing information (#72)

@adrianhopebailie  wrote:
> This is a critical aspect of the discussion because Billing Address is dealt with at the level of Payment Methods whereas Shipping Address is a function of the core PR API.

You are correct - though `PaymentOptions.requestBillingAddress` is in Payment Request. Basic Card pivots back into Payment Request to actually gather the billing address (Steps 3.2 of "[steps for when a user changes payment method](https://w3c.github.io/payment-method-basic-card/#steps-for-when-a-user-changes-payment-method)").

> As it stands, Billing Address is only defined in the Basic Card payment method specification.

You are correct. However, the only reason that it's only in Basic Card is that we have only defined one standardized Payment Handler (Basic Card). In my mind, there are some central questions relating to `PaymentOptions.requestBillingAddress` in Payment Request that we need to sort out.

So, before we talk solutions, let's make sure we have agreement on the invariants relating to requesting billing. I'll frame these as questions as we need to get to yes/no answers to then proceed to a solution:

  1. Must every payment instruments of a payment handler have a billing address?

  2. Given N payment handlers, is there a case where it's possible for one payment handler to return a billing address, but for another payment handler not to return a billing address?

For example. Given [Apple Pay, Basic-Card, ...arbitrary-payment-handlers], and `requestBillingAddress: true`, could any of those **not** return a billing address?

  2. Given N payment handlers, is there are a case where the requested billing address would require a different specificity per payment handler?

For example. Given [Apple Pay, Basic-Card, ...arbitrary-payment-handlers], and `requestBillingAddress: true`, would it ever make sense to ask?:

 * Apple Pay: I ONLY need the country and the post code.
 * Google Pay: I need the country, the city, and the post code.
 * Arbitrary-payment-handler: I need the country, the city, the post code, and the region Code.




-- 
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-method-basic-card/issues/72#issuecomment-481498356

Received on Wednesday, 10 April 2019 01:29:29 UTC