Re: [w3c/payment-request] Add hasEnrolledInstrument() again (for 1.1) (#931)

> A negative `total` will throw an exception in `PaymentRequest` constructor, I believe.

Ah then that was a bad example.  Hopefully you get the idea I was going for :)

> By the way, can the version be checked in `canMakePayment()` instead of `hasEnrolledInstrument()`? What is the advantage of `hasEnrolledInstrument()` over `canMakePayment()` for WebKit's use case, if any?

That would also work!  AFAICT though this is not allowed by the [can make payment algorithm](https://www.w3.org/TR/payment-request/#dfn-can-make-payment-algorithm), as it only looks at the _identifier_ of the _paymentMethod_.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/payment-request/pull/931#issuecomment-966582602

Received on Thursday, 11 November 2021 19:55:56 UTC