-
Notifications
You must be signed in to change notification settings - Fork 42
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
Revisiting Payment Method specific filter/capability matching #157
Comments
After discussing this with @zkoch, I'm starting to lean toward the Note that the user must install the payment handler first before the handler is able to receive the |
@rsolomakhin, thank you for the follow-up from yesterday's call. In terms of the spec, this suggests the following sorts of changes:
Anything else you would add to this list? Ian |
This sounds good with minor corrections of a few details.
|
@rsolomakhin, you wrote "If the payment app does not have this event handler, then the browser should always show the payment app when its payment method is requested." In summary (I hope):
Does that sound right? Ian |
This sounds like a good algorithm for Edit: |
My expectation is that Payment Handler API would say "You know that open-ended language about matching in PR API? Here's what it means for implementations of Payment Handler API...." That is: we would not modify PR API directly. Ian |
I will send a PR for this. |
The proposal is in pull request #170. |
Discussed on 29 August [1]. There are two threads at this point:
|
I am closing this issues in light of the merging of pull request #170 and documentation about matching in Payment Method Good Practice: Ian |
Hi all,
At yesterday's meeting [1] we returned to the question of whether matching of payment method specific filters/capabilities happens in the user agent or the payment app. There were two topics:
This issue is (for now at least) about the latter.
I think there is consensus that Payment Request API should indicate in relevant algorithms THAT additional matching can take place according to payment method. I anticipate that PR API will not say WHERE matching takes place (user agent or payment app).
The current Payment Handler spec supports registration of payment app capabilities with the user agent with, I believe, the assumption that the user agent will do the matching. There are pros to this approach, including:
There are also cons to this approach:
are multiple instances of the payment handler (on different devices) that need to be updated.
After FPWD, I would like the payment apps task force to revisit this question of matching
to see whether we still wish to put forward an approach where matching is implemented
by the user agent, or more of a canMakePayment() approach where the payment app
returns a boolean (and where we are sensitive to privacy issues).
Ian
P.S. I started a new issue but this is also a continuation of some parts of the
closed issue 96
#96
[1] https://www.w3.org/2017/05/11-wpwg-minutes.html#item02
The text was updated successfully, but these errors were encountered: