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

Include payment handler information in response #815

Open
ianbjacobs opened this issue Nov 27, 2018 · 1 comment
Open

Include payment handler information in response #815

ianbjacobs opened this issue Nov 27, 2018 · 1 comment

Comments

@ianbjacobs
Copy link
Collaborator

We have heard use cases for merchants having information about the user's selected payment handler for a transaction, including:

  • Being able to debug issues
  • Security / Trust in some payment handlers

This is most useful for standardized payment methods but may also be useful for URI-identified payment methods that allow for multiple payment handlers.

The original payment handler issue is 217:
w3c/payment-handler#217

I am not proposing this for a v1 feature. However, when we start to consider the issue we can return to a proposal to return two bits of information in the PR API response:

handlerType: {'built-in', 'web', 'native')
handlerID: {null, <origin>, <platform-specific> }

Ian

@rsolomakhin
Copy link
Collaborator

Can we reuse the field names "platform" and "id" from ExternalApplicationResource dictionary? Chrome already parses it in web app manifests to authenticate native Android payment apps.

Android:

"handler": {
  "platform": "play",
  "id": "com.example.app1",
}

Web:

"handler": {
  "platform": "web",
  "id": "https://app1.example.com",
}

Built-in:

"handler": {
  "platform": "built-in",
  "id": null,
}

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

No branches or pull requests

2 participants