NEW276088
[Apple Pay] PaymentRequestValidator should adopt per-currency checks for total amounts
https://bugs.webkit.org/show_bug.cgi?id=276088
Summary [Apple Pay] PaymentRequestValidator should adopt per-currency checks for tota...
Abrar Rahman Protyasha
Reported 2024-07-01 12:29:04 PDT
Our arbitrary 8 digit check in PaymentRequestValidator::validateTotal() is incorrect and does not reflect the maximum total amount possible in a payment request. As such, we will be removing this check in bug 276087. Unfortunately this means that our error mode goes from "Total amount is too large" to an opaque ABORT_ERR exception. The maximum amount is modulated by various factors; one of which is the varying minor decimal places per currency. To this end, and to restore the more descriptive error mode we lose as resolution to bug 276087, we should adopt per-currency checks for total amounts.
Attachments
Radar WebKit Bug Importer
Comment 1 2024-07-01 12:29:26 PDT
Note You need to log in before you can comment on or make changes to this bug.