w3c / payment-request

Payment Request API
https://www.w3.org/TR/payment-request/
Other
489 stars 135 forks source link

Make billing address optional #773

Closed agektmr closed 5 years ago

agektmr commented 5 years ago

Looks like appending a billing address to a payment credential is not a common idea all over the world. In Japan we usually do not need one for credit card authorization.

I would like to propose making billing address optional by adding a new param something like:

dictionary PaymentOptions {
  boolean requestPayerName = false;
  boolean requestPayerEmail = false;
  boolean requestPayerPhone = false;
  boolean requestShipping = false;
  PaymentShippingType shippingType = "shipping";
  boolean requestBillingAddress = false; // New!
};
romandev commented 5 years ago

I'm not sure but the billing address is already optional in spec side. https://w3c.github.io/payment-method-basic-card/#basiccardresponse-dictionary Am I missing something?

marcoscaceres commented 5 years ago

Yep, duplicate of https://github.com/w3c/payment-request/pull/749/files

Got you covered, @agektmr. Will land soon!

agektmr commented 5 years ago

Glad to learn it's already taken care of. Thanks!