You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 27, 2021. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 27, 2021. It is now read-only.
The Basic Card Payment specification provides additional information that forms a unique correlator. Unlike unique, cross-origin information provided by the Payment Request API, the cardNumber field provided by the Basic Card API is (necessarily) required rather than optional. The current document appears to assume that any Basic Card Payment app will request all possible fields; however, there is a PR filed for leaving off unneeded information. For the sake of privacy, we recommend this PR be accepted.
The PR that @adamroach mentions was closed after discussion at the Sept 2016 F2F, pending a potential reopen. With Nick Doty's email to the group this morning, it is worth considering if we should once again look at this issue prior to moving to CR.
Options;
Add fields filter to Basic-Card
Add fields filter to Payment-Request (so it can apply to all PMIs)
@mattsaxon For clarity, are you suggesting that the merchant website be able to specify which fields are mandatory and which optional in the payment response for a basic-card payment?
i.e. A merchant website can say "I support basic card but I only want you to return the PAN and expiry"?
My recollection from previous discussions is that about friction collecting information (which may lead to dropoff). Matt cited CVV as one example. ("I don't want you to prompt for CVV; I accept the risk.")
However, it is not clear to me that shipping implementations allow for collection of less than the five fields.
Apart from cardNumber, the spec makes members optional... if the user chooses not to include some member's details, then they are just set to the empty string.
However, certain user agents force the user to enter all credit card information before they can proceed... but all user agents allow the user to abort the payment process.
What's clear to me is that my complete billing address (including phone number) shouldn't be sent to every merchant using basic-card since most checkout web forms using credit cards don't require all that information now and so users won't expect the information to be leaked. It seems like Apple has a similar viewpoint since their Apple Pay payment method doesn't include the billing address by default, the merchant needs to specifically request an array of requiredBillingContactFields. I personally don't think Mozilla should ship an implementation of basic-card that leaks the billing address by default.
Even if the merchant indicates they require a postal billing address, it's not clear whether a billing phone number is required even though that is also part of the PaymentAddress structure. It seems like we should have a separate option to request the billing phone number. e.g. if we copy Apple's approach we could have
I would ideally like the address to be even more fine-grained since some merchants only need the ZIP code for fraud detection, not the rest of the address.
Btw. I don't think an exclusion approach (#29) is the right idea as the defaults will heavily influence what developers request and we should only be giving the minimum required by default.
As I noted in IRC during the F2F, our user research at Mozilla indicates that users are quite leery about exposing more sensitive information like their phone number. If they know the phone number is needed for shipping purposes they're more accepting. Gathering this data (or exposing data that's really not required) will legitimately raise privacy concerns among a broad swath of users - especially these days. Furthermore, there's no method by which the merchant can specify why any given field is being requested (e.g., "we need your phone number to contact you if there are any problems with delivery"). For some users, being asked for phone number without a legitimate or putative need might be a cause of shopping cart abandonment. This too would be worth researching with users.
Just a note... we can discuss further here to understand the scope of the problem, but the above looks like it should spin off into multiple (related) bugs.
@ianbjacobs, do we have an authority in the WG on credit card fraud detection that can definitively tell us exactly which parts of the billing address are pertinent to fraud detection? I want to make sure @mnoorenberghe's concerns are addressed, specially if we can drop more fields from billingAddress.
On "payment method change": billingAddress redacts "organization", "phone", "recipient", "addressLine" and can chop post code.
On "user accepts payment": billingAddress redacts "organization", "phone", "recipient", and can chop post code. The "addressLine" stays tho, because that is matched by AVS.
That sounds good for when the merchant opts in to getting a billing address.
IMO the default should be a nullbillingAddress for both algorithms and if the merchant uses AVS they can opt-in to it.
From what @zkoch said previously, it might be too late for Chrome to roll this back. So we might need to make a concession and say that in certain regions the billingAddress MAY be added by default.
I changed the title back to the original title. The original use case from @mattsaxon was for the merchant to say to the browser (or other payment handler): don't collect the CVV; I would rather the user have less friction and I accept the increased risk.
One proposal had been that each payment method might support an array in request data where the merchant could specify which response fields to exclude when building the response.
Since the original use case ("don't collect CVV due to friction") other use cases have arisen:
The user doesn't want to share information for privacy reasons.
The merchant doesn't want to collect information for liability reasons.
I would prefer that this issue remain merchant-focused (rather than user-focused). The original issue is that the merchant wants to indicate which payment method response fields it wants the payment handler to exclude.
Activity
mattsaxon commentedon Mar 24, 2017
The PR that @adamroach mentions was closed after discussion at the Sept 2016 F2F, pending a potential reopen. With Nick Doty's email to the group this morning, it is worth considering if we should once again look at this issue prior to moving to CR.
Options;
adrianhopebailie commentedon Apr 1, 2017
@mattsaxon For clarity, are you suggesting that the merchant website be able to specify which fields are mandatory and which optional in the payment response for a basic-card payment?
i.e. A merchant website can say "I support basic card but I only want you to return the PAN and expiry"?
mattsaxon commentedon Apr 2, 2017
@adrianhopebailey, that's correct
adrianhopebailie commentedon Apr 2, 2017
Is the privacy implication here that the merchant doesn't want to see the name on the card?
ianbjacobs commentedon Apr 2, 2017
My recollection from previous discussions is that about friction collecting information (which may lead to dropoff). Matt cited CVV as one example. ("I don't want you to prompt for CVV; I accept the risk.")
However, it is not clear to me that shipping implementations allow for collection of less than the five fields.
Ian
marcoscaceres commentedon Sep 20, 2017
Apart from
cardNumber, the spec makes members optional... if the user chooses not to include some member's details, then they are just set to the empty string.However, certain user agents force the user to enter all credit card information before they can proceed... but all user agents allow the user to abort the payment process.
Now, just the first 6 digits of the card number can reveal about a user (using https://www.bindb.com):
@adamroach, do you think we should make some kind of mention of the above?
mnoorenberghe commentedon Apr 17, 2018
What's clear to me is that my complete billing address (including phone number) shouldn't be sent to every merchant using
basic-cardsince most checkout web forms using credit cards don't require all that information now and so users won't expect the information to be leaked. It seems like Apple has a similar viewpoint since their Apple Pay payment method doesn't include the billing address by default, the merchant needs to specifically request an array ofrequiredBillingContactFields. I personally don't think Mozilla should ship an implementation of basic-card that leaks the billing address by default.Even if the merchant indicates they require a postal billing address, it's not clear whether a billing phone number is required even though that is also part of the
PaymentAddressstructure. It seems like we should have a separate option to request the billing phone number. e.g. if we copy Apple's approach we could have(values are a subset of
ApplePayContactFieldoptions)I would ideally like the address to be even more fine-grained since some merchants only need the ZIP code for fraud detection, not the rest of the address.
Btw. I don't think an exclusion approach (#29) is the right idea as the defaults will heavily influence what developers request and we should only be giving the minimum required by default.
marcoscaceres commentedon Apr 19, 2018
Proposal is to have certain fields excluded for privacy reasons. Then, we can add something like
requiredBillingContactFieldsif we need it.stpeter commentedon Apr 19, 2018
As I noted in IRC during the F2F, our user research at Mozilla indicates that users are quite leery about exposing more sensitive information like their phone number. If they know the phone number is needed for shipping purposes they're more accepting. Gathering this data (or exposing data that's really not required) will legitimately raise privacy concerns among a broad swath of users - especially these days. Furthermore, there's no method by which the merchant can specify why any given field is being requested (e.g., "we need your phone number to contact you if there are any problems with delivery"). For some users, being asked for phone number without a legitimate or putative need might be a cause of shopping cart abandonment. This too would be worth researching with users.
ianbjacobs commentedon Apr 26, 2018
My takeaway from discussion in Singapore [1] is that there was some support default behavior of not returning phone information.
[1] https://www.w3.org/2018/04/19-wpwg-minutes.html#card5
redact phone number (closes #5)
marcoscaceres commentedon Apr 30, 2018
Now part of #52
redact phone number (closes #5)
4 remaining items
marcoscaceres commentedon May 14, 2018
Happy to revisit. At the f2f, we only agreed to remove phone number.
marcoscaceres commentedon May 14, 2018
Just a note... we can discuss further here to understand the scope of the problem, but the above looks like it should spin off into multiple (related) bugs.
marcoscaceres commentedon Nov 21, 2018
@ianbjacobs, do we have an authority in the WG on credit card fraud detection that can definitively tell us exactly which parts of the billing address are pertinent to fraud detection? I want to make sure @mnoorenberghe's concerns are addressed, specially if we can drop more fields from
billingAddress.marcoscaceres commentedon Nov 21, 2018
Wikipedia has some info:
marcoscaceres commentedon Nov 21, 2018
Also, is AVS the only reason for
billingAddress?Ok, The You Tubes tells me that cardholder name doesn't participate in AVS. So that's a potential target for removal.
marcoscaceres commentedon Nov 21, 2018
So, some options here:
billingAddressredacts "organization", "phone", "recipient", "addressLine" and can chop post code.billingAddressredacts "organization", "phone", "recipient", and can chop post code. The "addressLine" stays tho, because that is matched by AVS.mnoorenberghe commentedon Nov 21, 2018
That sounds good for when the merchant opts in to getting a billing address.
IMO the default should be a
nullbillingAddressfor both algorithms and if the merchant uses AVS they can opt-in to it.marcoscaceres commentedon Nov 22, 2018
Agree 💯. AVS is only used in 3 countries, so why we should pass billing address by default doesn't make much sense.
marcoscaceres commentedon Nov 22, 2018
Ok, I've updated #65 so it's always null, unless it's explicitly asked for.
From what @zkoch said previously, it might be too late for Chrome to roll this back. So we might need to make a concession and say that in certain regions the
billingAddressMAY be added by default.marcoscaceres commentedon Nov 22, 2018
Ok, also made it optional for the user agent to add the billing address in, say, the US, UK, and Canada...
[-]Leave Off Unneeded Information[/-][+]Leave Off Unneeded Information from BillingAddress[/+][-]Leave Off Unneeded Information from BillingAddress[/-][+]Leave Off Unneeded Information[/+]ianbjacobs commentedon Nov 27, 2018
Hi @marcoscaceres,
I changed the title back to the original title. The original use case from @mattsaxon was for the merchant to say to the browser (or other payment handler): don't collect the CVV; I would rather the user have less friction and I accept the increased risk.
One proposal had been that each payment method might support an array in request data where the merchant could specify which response fields to exclude when building the response.
Since the original use case ("don't collect CVV due to friction") other use cases have arisen:
I would prefer that this issue remain merchant-focused (rather than user-focused). The original issue is that the merchant wants to indicate which payment method response fields it wants the payment handler to exclude.
Ian