[w3c/payment-handler] PaymentRequestEvent.total should be PaymentCurrencyAmount. (#179)

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