w3c / payment-request

Payment Request API
https://www.w3.org/TR/payment-request/
Other
489 stars 135 forks source link

Meaning of canMakePayment() #800

Closed marcoscaceres closed 5 years ago

marcoscaceres commented 5 years ago

We discovered during testing that each implementation have slightly different definitions of "can make payment". During the F2F, we came to a consensus that "canMakePayment" means "the user agent supports the PMIs" - but it does not mean that there is a payment instrument set up. We concluded that we might add something to check if there is an active instrument in the future. I'll file a different bug for that.

aestes commented 5 years ago

For reference, WebKit changed its canMakePayment() implementation to match the consensus definition: https://trac.webkit.org/r237594.

jenan-stripe commented 5 years ago

+1 for consistency, but I'd be pretty worried if this lands before #801. The major wallet providers have active instrument checks, and if that's not landing soon with PaymentRequest, it's a much less compelling option for merchants.