-
Notifications
You must be signed in to change notification settings - Fork 45
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
Incorrect Android/PaymentRequest Info #28
Comments
That you can combine manifest files is also not entirely obvious: {
"default_applications": ["https://bobpay.com/manifest.json"],
"related_applications": [{
"platform": "play",
"id": "com.bobpay.pay",
"min_version": "1",
"fingerprints": [{
"type": "sha256_cert",
"value": "85:0B:99:03:54:CE:71:6E:18:7C:43:1F:7F:C1:F1:5E:9B:81:84:1D:36:CE:F3:
F6:E2:97:15:70:79:7F:B0:F7"
}]
}],
"supported_origins": "*"
} |
Sorry about that, Anders! I will try to make it more clear.
Good point! I should've linked to the following examples:
Could you tell me more about the confusion around payment method manifest? I will try to clarify.
We've heard this feedback from other web developers as well, so Web Payment APIs in Chrome 76 now respect the command line flags This wiki describes how to pass command line flags to Chrome on Android:
The original rationale was to use payment methods that are easy to remember, such as
That's a great idea! I actually have not considered it before. Let's add it to the payment method manifest spec: w3c/payment-method-manifest#10 (comment)
Oh yeah, the caching is a mess at this time. We need to figure out how to rebuild that whole component using some standard, like HTTP Caching. Currently we cache the manifests for 90 days and refresh them on every
The Thank you for trying the API! Would you be interested in sharing your experience at the W3C TPAC this September? |
Thanx Rouslan, In case you have time to update the document it might be useful putting browser implementation details in a separate document and only keep links to that in the "users guide". Or maybe linking in the other direction would be even more logical? I would love to go to TPAC but 1) I have no funding 2) I just started with PaymentRequest for Android so my experiences are somewhat limited 3) I'm not a W3C member. I'm currently trying to get this through the IETF ISE process: |
I'm trying to follow the guidelines in:
https://developers.google.com/web/fundamentals/payments/payment-apps-developer-guide/android-payment-apps
Although I have got it to work I find it confusing. The lack of a single custom Android app is also making things unnecessary difficult.
The reference to https://w3c.github.io/payment-method-manifest makes no sense since it appears to cover another kind of manifest than needed by Android native apps.
fingerprints
is not specified in this document.It is not entirely obvious how you can develop code without having a public server holding the payment manifest. I solved this by creating a CA certifying IP addresses and adding the root to emulators and devices. Payment method:
https://192.168.1.79:8442/w3cpay/method
I don't understand the rationale for the HTTP HEAD and
Link
solution. If you are able supporting a custom HEAD on a server, why couldn't the manifest be at the same URL? If there is noLink
, Chrome might as well perform GET on the same URL.BTW, I couldn't get manifest caching to work in a reasonable manner. Since you get serious problems if this scheme isn't working, I think a better description would be appropriate. Currently I run without caching.
There are strange things in the code samples as well:
The
i
is what?The text was updated successfully, but these errors were encountered: