-
Notifications
You must be signed in to change notification settings - Fork 63
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
Should a payment method identifier (URL) resolve to a machine readable resource that describes the payment method? #30
Comments
URIs would essentially be namespace URIs, in which case please see the TAG finding: I would not recommend any conformance requirement. |
Yes. The resource should be machine-readable (expressed as JSON-LD, at a minimum) for the reasons specified here: http://www.w3.org/TR/json-ld/#introduction
We should not require it, but encourage it. At a bare minimum, you could publish a human readable string in various languages for the payment method. You could also publish the payment method's branding image. You could also make it so that a payment method URL may list the payment apps that are capable of processing the payment method. This would make it easy for user agents to retrieve a payment app if one isn't available in the user agent already. It could address the "no available payment apps" use case. I'm not suggesting that's how it would work, just that it seems like there are enough use cases to think more deeply about it. |
I actually prefer the mechanism that is required in RDFa Core. It [1] http://www.w3.org/TR/rdfa-core/#s_initialcontexts On Sun, Dec 6, 2015 at 4:22 PM, Manu Sporny [email protected]
Shane McCarron |
I don't believe we are chartered to produce a payment instrument description format that would be served at such a namespace URI. I don't think we should try to address this question at this time. I would not object to saying it's good practice to provide information and once we see what people do, look for some standardization opportunity in the future. Ian |
We certainly don't have to go very far with a description, but we will need some basics for the API to function, eg: information that goes into the https://github.com/w3c/webpayments/wiki/Components#payment-app |
The manifest described in that doc is for payment apps. The function of a payment method identifier is simply to help the payer and payee establish a set of methods that are supported by both sides. i.e. It's just an identifier For a payment app to support a payment method it will need to understand a potentially complex set of actions that need to be performed when receiving a payment request including how to interpret any custom (payment method specific) fields in the request and how to produce the correct response message. It seems very unlikely that a payment app would ever be able to simply pull down the machine-readable description of the payment method and be able to spontaneously support that payment method. In fact I'd be in favour of the payment method URI pointing to the root of some documentation for that payment method to assist payment app and payment gateway developers in implementing the payment method.
Some embedded machine readable content like this would be useful but would require the payment method publishers to maintain this list. |
Updated title to better reflect the discussion |
Migrated to w3c/payment-request#46. |
The Payment Method Identifiers asks:
The text was updated successfully, but these errors were encountered: