- From: Devin Rousso <notifications@github.com>
- Date: Thu, 11 Nov 2021 11:55:44 -0800
- To: w3c/payment-request <payment-request@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Thursday, 11 November 2021 19:55:56 UTC
> 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