Skip to content
This repository was archived by the owner on Aug 27, 2021. It is now read-only.
This repository was archived by the owner on Aug 27, 2021. It is now read-only.

Add an excludedFields BasicCardRequest parameter #29

Closed

Description

@ianbjacobs

I am starting this new issue based on previous comments from @mattsaxon in issue #26 and issue #5, and inspired by his previous proposal:
w3c/payment-request#143 (comment)

Here's a proposal:

  • Add a field for BasicCardRequest: "excludedFields". This list is the merchant preference for the user agent NOT returning a those fields in the BasicCardResponse.
  • At least for version 1, user agents SHOULD NOT return the excludedField in the BasicCardResponse.
  • Any excludedFields values that do not correspond to field names in section 5.1 of the spec are ignored by user agents.

I'd like to hear from implementers.

Activity

  1. marcoscaceres commented on Apr 4, 2017

    @marcoscaceres
    Member

    Reminder, to +1 use the GH provided buttons for reactions:

    screenshot 2017-04-04 16 36 37

    (Marcos deletes all "+1" comments from the issue tracker)

  2. zkoch commented on Apr 19, 2017

    @zkoch
    Contributor

    I think there is value in this, but given that we already have two implementations out in the wild that rely on this spec, I don't think now is the appropriate time to add. I would propose that we consider this for the next version after we get to CR.

  3. mattsaxon commented on Apr 20, 2017

    @mattsaxon

    Happy for it to be postponed, but let's not close.

  4. marcoscaceres commented on Sep 20, 2017

    @marcoscaceres
    Member

    Now might be a good time to return to this. From the members of BasicCardResponse, what's the use case for the merchant excluding any of the members?

  5. rsolomakhin commented on Sep 20, 2017

    @rsolomakhin
    Collaborator

    @marcoscaceres The use case is some merchants that don't require CVC or billing address to charge your card. Some merchants make this tradeoff to increase conversions at the cost of higher fraud risk.

  6. ianbjacobs commented on Sep 20, 2017

    @ianbjacobs
    ContributorAuthor

    @mattsaxon, do you want to weigh in as well now that we are returning to this?

    Ian

  7. marcoscaceres commented on Sep 20, 2017

    @marcoscaceres
    Member

    @rsolomakhin, I see. The problem now is that shipping implementations will return all the values (even if we added support for this tomorrow).

    Why couldn't a merchant just pretend the values are not there in the response and simply not use them?

  8. ianbjacobs commented on Sep 20, 2017

    @ianbjacobs
    ContributorAuthor

    Hi @marcoscaceres,

    The merchant wants to say to the browser: "I don't want this, so please don't show UI to the user because that will reduce the chances the transaction will be completed." Right now merchants
    can't say that.

    Ian

  9. rsolomakhin commented on Sep 20, 2017

    @rsolomakhin
    Collaborator

    Personally I'm against giving too many options to the merchant in this case, because I don't want PaymentRequest to become a glorified form builder. If there's demand for such customization, custom payment methods should provide it, e.g., "https://credit-cards.com/no-cvc-or-billing-address".

  10. marcoscaceres commented on Sep 20, 2017

    @marcoscaceres
    Member

    I agree with @rsolomakhin. Remember that the Payment Sheet is not a form for the merchant... it's kinda like a "wallet", where users can see all their cards, make modifications/updates to those cards (even if the cards shown have been filtered by type), etc. so it might become confusing if we start arbitrarily taking away things that users expect to be there.

  11. marcoscaceres commented on Sep 20, 2017

    @marcoscaceres
    Member

    Just one more point: the assumption should really be that the user has already filled out the information in the basic card storage... there is a good chance of that, specially as time goes on (because the autofill DB will likely have this information) and because the chances of the user previously having used the API on some other site goes up over time.

    Thus, the notion of "that will reduce the chances the transaction will be completed" becomes irrelevant and not a concern. In fact, we actually really want users to add as much info as possible, as they only have to do it once and then the whole ecosystem benefits as a result.

  12. marcoscaceres commented on Nov 21, 2018

    @marcoscaceres
    Member

    Closing as duplicate of #5.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions