diff --git a/index.html b/index.html index 37f160fe..e06dcc85 100644 --- a/index.html +++ b/index.html @@ -386,6 +386,10 @@

PaymentRequest constructor

If details does not contain a value for total, then throw a TypeError. +
  • + If details contains a value for error, 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. @@ -675,6 +679,7 @@

    PaymentDetails dictionary

    sequence<PaymentItem> displayItems; sequence<PaymentShippingOption> shippingOptions; sequence<PaymentDetailsModifier> modifiers; + DOMString error; }; @@ -731,6 +736,15 @@

    PaymentDetails dictionary

    for particular payment method identifiers. For example, it allows you to adjust the total amount based on payment method. +
    error
    +
    + When the payment request is updated using updateWith, the PaymentDetails + can contain a message in the error field that will be displayed to the user. For example, + this might commonly be used to explain why good cannot be shipped to the chosen shipping address. +

    + The error field cannot be passed to the PaymentRequest constructor. + Doing so will cause a TypeError to be thrown. +

    @@ -1219,6 +1233,10 @@

    updateWith()

  • +
  • + If details contains an error value, then the user agent should + update the user interface to display the error message contained in error. +
  • Set [[\waitForUpdate]] to false.