diff --git a/specs/paymentrequest.html b/specs/paymentrequest.html index 6a46ec7e..b6eae175 100644 --- a/specs/paymentrequest.html +++ b/specs/paymentrequest.html @@ -390,8 +390,12 @@

PaymentRequest constructor

  • - If details does not contain a sequence of items with length greater - than zero, then throw a TypeError. + If details does not contain a value for total, then throw a + TypeError. +
  • +
  • + If the first character of details.total.amount.value is U+002D HYPHEN-MINUS, then throw a + TypeError. total MUST be a non-negative amount.
  • For each PaymentMethodData in methodData, if the data field @@ -601,13 +605,6 @@

    CurrencyAmount

    required DOMString value; }; -
    - The resolution of the WG per Issue #57 defined - a format for currencies and amounts that lacked support for negative values. The format below adds this - capability in a way that is not common for financial messaging standards (using signed numbers). The - rationale for negative numbers is to support discounts. The group is still discussing whether functionality - to support discounts might be implemented in a different manner (e.g., via a transaction type). -

    A CurrencyAmount dictionary is used to supply monetary amounts. The following fields MUST be supplied for a CurrencyAmount to be valid: @@ -663,6 +660,10 @@

    PaymentDetails dictionary

    total
    This PaymentItem contains the total amount of the payment request. +

    + total MUST be a non-negative value. This means that the total.amount.value + field MUST NOT begin with a U+002D HYPHEN-MINUS character. +

    displayItems