Skip to content

Conversation

mattsaxon
Copy link
Contributor

@mattsaxon mattsaxon commented Apr 29, 2016

Removed incorrect required fields as per issue 134

@zkoch
Copy link
Contributor

zkoch commented May 2, 2016

Hey Matt, cardholder name being optional makes sense because of rationale provided in #134, but can you explain expiration dates also being optional?

@mattsaxon
Copy link
Contributor Author

UnionPay debit cards don't have an expiry date.

@adrianhopebailie
Copy link
Collaborator

adrianhopebailie commented May 3, 2016

@zkoch why would we enforce this at the API level anyway?

To me this IDL simply provides a standardized data model for the payment app to hang data off so that the website (or PSP) that gets the response knows where to find things. If we are too restrictive we will force people to write new payment method specs to simply change a field from mandatory to optional.

A question for @zkoch and @adrianba (or any other browser vendor) is whether you expect the browser to do any validation of this data when it comes back from a third-party payment app? I expected it to be entirely opaque.

@halindrome
Copy link
Contributor

Frankly, this is my problem with using WebIDL as a way of representing a data model. IDL isn't for data modelling (I speak as someone who was on that committee at OMG back in the day). It was for defining APIs that may be connected asynchronously over a network - especially when the different ends of that connection might be in differing programming languages. It represents a contract.

In this case the contract is between the payee and the payment app for the important parts of the data. And we are in no position to enforce nor even negotiate that contract. At least, I don't think we are. It is too fluid.

@adrianhopebailie
Copy link
Collaborator

@halindrome that is why I suggested we don't use WebIDL in these specs in #132

@AxelNennker is opposed to changing from WebIDL so I suggest we put the issue up for discussion on a future call. I'll see what the priorities look like for this week and add it if we have time.

@adrianba
Copy link
Contributor

adrianba commented May 3, 2016

This change LGTM.

@rvm4 rvm4 merged commit 9c32ebc into w3c:gh-pages May 3, 2016
@marcoscaceres marcoscaceres changed the title Required fields Losen requirements around Credit Card required fields May 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants