-
Notifications
You must be signed in to change notification settings - Fork 135
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add hasEnrolledInstrument() again #931
base: gh-pages
Are you sure you want to change the base?
Conversation
WebKit is interested in adding something along these lines. For Apple Pay specifically, we require that a Along these lines, would |
Hi @dcrousso! A negative |
Ah then that was a bad example. Hopefully you get the idea I was going for :)
That would also work! AFAICT though this is not allowed by the can make payment algorithm, as it only looks at the identifier of the paymentMethod. |
Thank you for the explanation, @dcrousso . That use case makes sense. If the user agent knows the version of the payment app and the |
Ideally there'd be a way of checking "is all of the data I've provided to the |
Are there any privacy concerns about passing an |
Can you elaborate when/how that'd happen with |
Passing data between origins silently is not something desirable from privacy perspective. Would you agree? That's why my preference had been to remove the However, I can see how the use case of validating the For example, the spec could define a "read-only mode" for the payment app, so it cannot write user identifying information to disk or have any network access when the user agent passes |
Ah I see. We definitely don't want data to be sent without user knowledge/approval/etc.. A "readonly" (or maybe "validation") mode would be ideal. All I'm really after is a way to perform steps 16.3-16.4 of the |
@dcrousso, I wonder if this is already covered by the constructor's step 4.3.6.2. As the notes states, "This step assures that any IDL type conversion errors are caught as early as possible." When doing the conversion there, it would throw if the required However, we could clarify in the constructor steps that custom validation could also be performed there. |
Spun off a new issue: #975 |
Oh wow yeah that would work! I'll this in WebKit :) |
@marcoscaceres err, actually, reading very literally, I don't think it would as currently written. It only says that we can
That doesn't mention anything about actually looking at the values inside the IDL type (in this case |
I created <https://webkit.org/b/233292> ([Payment Request] Validate payment method data on construction) 🙂 |
Revert "Remove hasEnrolledInstrument() (#930)"
This reverts commit f697360.
closes #???
The following tasks have been completed:
Implementation commitment:
Optional, impact on Payment Handler spec?
Preview | Diff
Preview | Diff