Skip to content

Incorrect Android/PaymentRequest Info #28

@cyberphone

Description

@cyberphone

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 no Link, 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:

Parcelable[] certificateChain;
Bundle certficate = new Bundle();
certificate.putByteArray("certificate", certificateByteArray[i]);
certificateChain[i] = certificate;
extras.putParcelableArray("certificateChain", certificateChain);

The i is what?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions