Skip to content
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

API naming and confusion #417

Open
rsolomakhin opened this issue Aug 23, 2024 · 4 comments
Open

API naming and confusion #417

rsolomakhin opened this issue Aug 23, 2024 · 4 comments

Comments

@rsolomakhin
Copy link
Collaborator

Hi everyone,

As the PaymentRequest ecosystem has grown, there has been some confusion about what constitutes a "Payment Handler".

Some people take "Payment Handler" to mean any payment app that can handle a PaymentRequest, be it based on service worker (https://w3c.github.io/payment-handler/), Android intents (https://web.dev/articles/android-payment-apps-developers-guide), built into an OS or a user agent.

Other people take "Payment Handler" to mean specifically the "Payment Handler API" as defined in https://w3c.github.io/payment-handler/.

To resolve this confusion, we propose:

  1. Rename https://w3c.github.io/payment-handler/ to "Web Payment Handler API".
  2. "Payment Handler" is any payment app that works with the PaymentRequest API.

Please provide your feedback in responses to this issue in the following format:

  1. Yes/No - <Rename https://w3c.github.io/payment-handler/ to "Web Payment Handler API"?>
  2. Yes/No - <Should "Payment Handler" mean any payment app that works with the PaymentRequest API?>
@stephenmcgruer
Copy link
Collaborator

"Payment Handler" is any payment app that works with the PaymentRequest API.

Note: within the Payment Request spec, this is already how a Payment Handler is defined!

https://w3c.github.io/payment-request/#dfn-payment-handler

image

"The details of how to fulfill a payment request for a given payment method is an implementation detail of a payment handler, which is an application or service that handles requests for payment."

@stephenmcgruer
Copy link
Collaborator

And for posterity:

  1. Yes - <Rename https://w3c.github.io/payment-handler/ to "Web Payment Handler API"?>
  2. Yes - <Should "Payment Handler" mean any payment app that works with the PaymentRequest API?>

@ianbjacobs
Copy link
Contributor

  1. Yes - <Rename https://w3c.github.io/payment-handler/ to "Web Payment Handler API"?>
  2. Yes - <Should "Payment Handler" mean any payment app that works with the PaymentRequest API?>

@rsolomakhin
Copy link
Collaborator Author

@marcoscaceres - can we get your take?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants