- From: Rouslan Solomakhin <notifications@github.com>
- Date: Wed, 14 Jun 2017 09:38:44 -0700
- To: w3c/payment-handler <payment-handler@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Wednesday, 14 June 2017 16:39:41 UTC
The spec says that `PaymentRequestEvent.total` is [`PaymentItem`](https://w3c.github.io/browser-payment-api/#paymentitem-dictionary), e.g.:
```javascript
{
label: "Total",
amount: {
currency: "USD",
value: "1.00",
currencySystem: "urn:iso:std:iso:4217"
},
pending: false
}
```
I propose that `PaymentRequestEvent.total` should not include the `label` and the `pending` attributes, because these are useless for the payment app. Instead it should be [`PaymentCurrencyAmount`](https://w3c.github.io/browser-payment-api/#paymentcurrencyamount-dictionary), e.g.:
```javascript
{
currency: "USD",
value: "1.00",
currencySystem: "urn:iso:std:iso:4217"
}
```
--
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-handler/issues/179
Received on Wednesday, 14 June 2017 16:39:41 UTC