Re: [w3ctag/design-reviews] requesting a TAG review of making the "total" field optional in PaymentRequest API (#512)

Rather than making `total` optional, can the existing `pending` boolean on [PaymentItem](https://www.w3.org/TR/payment-request/#paymentitem-dictionary) be used to support this use case?

For cases like ride sharing, where the total amount is unknown at the time of payment authorization, the `total` item can be marked as `pending`. In Apple Pay, for instance, the payment sheet will not display pending amounts.

Seems like if we support both pending totals and optional totals, it becomes more difficult for authors to understand which mechanism is appropriate for a given scenario.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3ctag/design-reviews/issues/512#issuecomment-627613883

Received on Tuesday, 12 May 2020 21:42:38 UTC