Re: [w3c/payment-request] Should PaymentItems have a type? (#163)

The ideal solution is probably too big a change at this stage (making `PaymentDetailsInit.total` a `sequence<PaymentItem>`) so perhaps the following would suffice:

```idl
dictionary PaymentItem {
    required DOMString             label;
    required PaymentCurrencyAmount amount;
    boolean                        pending = false;
    boolean                        subTotal = false;
};
```

If `subTotal` is `true` this indicates to the browser that the item should be grouped with the total.

-- 
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/issues/163#issuecomment-349286068

Received on Tuesday, 5 December 2017 12:11:20 UTC