diff --git a/index.html b/index.html index 8882d35d..cd956de2 100644 --- a/index.html +++ b/index.html @@ -440,7 +440,7 @@

  • - Set request@[[\methodData]] to + Set request.[[\methodData]] to methodData.

    @@ -451,11 +451,11 @@

    presenting payment methods.

  • -
  • Set request@[[\details]] to details. +
  • Set request.[[\details]] to details.
  • -
  • Set request@[[\options]] to options. +
  • Set request.[[\options]] to options.
  • -
  • Set request@[[\state]] to created. +
  • Set request.[[\state]] to created.
  • Set the value of the shippingAddress attribute on request to null. @@ -486,9 +486,9 @@

    multiple PaymentShippingOption objects that have the same id, then set the shippingOptions field of - request@[[\details]] to an empty sequence. + request.[[\details]] to an empty sequence.

  • -
  • If request@[[\details]] contains a +
  • If request.[[\details]] contains a shippingOptions sequence and if any PaymentShippingOption in the sequence has the selected field set to true, then set id of the last PaymentShippingOption in the sequence with selected set to true.
  • -
  • Set request@[[\updating]] to false. +
  • Set request.[[\updating]] to false.
  • Return request.
  • @@ -522,16 +522,16 @@

  • Let request be the PaymentRequest object on which the method is called.
  • -
  • If the value of request@[[\state]] is not +
  • If the value of request.[[\state]] is not created then throw an InvalidStateError.
  • -
  • Set the value of request@[[\state]] to +
  • Set the value of request.[[\state]] to interactive.
  • Let acceptPromise be a new Promise.
  • Set acceptPromise in - request@[[\acceptPromise]]. + request.[[\acceptPromise]].
  • Return acceptPromise and perform the remaining steps in parallel. @@ -539,7 +539,7 @@

  • Let supportedMethods be the union of all the supportedMethods sequences from each PaymentMethodData in the - request@[[\methodData]] sequence. + request.[[\methodData]] sequence.
  • Let acceptedMethods be supportedMethods with all identifiers removed that the user agent does not @@ -565,7 +565,7 @@

    and to tear down any user interface that might be shown. abort can only be called after the show method has been called and before the - request@[[\acceptPromise]] has been resolved. For + request.[[\acceptPromise]] has been resolved. For example, a web page might choose to do this if the goods they are selling are only available for a limited amount of time. If the user does not accept the payment request within the allowed time period, @@ -585,7 +585,7 @@

  • Let request be the PaymentRequest object on which the method is called.
  • -
  • If the value of request@[[\state]] is not +
  • If the value of request.[[\state]] is not interactive then throw an InvalidStateError.
  • Let promise be a new Promise. @@ -601,9 +601,9 @@

    this algorithm.

  • Set the value of the internal slot - request@[[\state]] to closed. + request.[[\state]] to closed.
  • -
  • Reject the promise request@[[\acceptPromise]] +
  • Reject the promise request.[[\acceptPromise]] with an AbortError.
  • Resolve promise with undefined. @@ -1640,10 +1640,10 @@

  • If [[\waitForUpdate]] is true, then throw an InvalidStateError.
  • -
  • If target@[[\state]] is not +
  • If target.[[\state]] is not interactive, then throw an InvalidStateError.
  • -
  • If target@[[\updating]] is true, then +
  • If target.[[\updating]] is true, then throw an InvalidStateError.
  • Set the stop propagation flag and stop immediate @@ -1651,7 +1651,7 @@

  • Set [[\waitForUpdate]] to true.
  • -
  • Set target@[[\updating]] to true. +
  • Set target.[[\updating]] to true.
  • The user agent SHOULD disable the user interface that allows the user to accept the payment request. This is to ensure @@ -1686,10 +1686,10 @@

    remaining user interface.

  • Set the value of the internal slot - target@[[\state]] to closed. + target.[[\state]] to closed.
  • Reject the promise - target@[[\acceptPromise]] with an + target.[[\acceptPromise]] with an AbortError.
  • Abort this algorithm. @@ -1715,7 +1715,7 @@

    monetary value and the first character of total.amount.value is NOT U+002D HYPHEN-MINUS, then copy total value to the total - field of target@[[\details]] + field of target.[[\details]] (total MUST be a non-negative amount).

  • If details contains a @@ -1724,7 +1724,7 @@

    containing a valid decimal monetary value, then copy details.displayItems to the displayItems field of - target@[[\details]]. + target.[[\details]].

  • If details contains a modifiers value, then: @@ -1745,7 +1745,7 @@

    modifiers to an empty sequence.

  • Copy modifiers to the modifiers - field of target@[[\details]]. + field of target.[[\details]].
  • @@ -1768,11 +1768,11 @@

  • Copy shippingOptions to the shippingOptions field of - target@[[\details]]. + target.[[\details]].
  • Let newOption be null.
  • -
  • If target@[[\details]] contains a +
  • If target.[[\details]] contains a shippingOptions sequence and if any PaymentShippingOption in the sequence has the selected field set to true, then set @@ -1795,7 +1795,7 @@

  • Set [[\waitForUpdate]] to false.
  • -
  • Set target@[[\updating]] to false. +
  • Set target.[[\updating]] to false.
  • The user agent should update the user interface based on any changed values in target. The user agent SHOULD @@ -1876,11 +1876,11 @@

    It MUST run the following steps:

      -
    1. If the request@[[\updating]] is true, then +
    2. If the request.[[\updating]] is true, then terminate this algorithm and take no further action. Only one update may take place at a time. This should never occur.
    3. -
    4. If the request@[[\state]] is not set to +
    5. If the request.[[\state]] is not set to interactive, then terminate this algorithm and take no further action. The user agent user interface should ensure that this never occurs. @@ -1907,17 +1907,17 @@

    6. Let request be the PaymentRequest object that the user is interacting with.
    7. -
    8. If the request@[[\updating]] is true, then +
    9. If the request.[[\updating]] is true, then terminate this algorithm and take no further action. The user agent user interface should ensure that this never occurs.
    10. -
    11. If request@[[\state]] is not +
    12. If request.[[\state]] is not interactive, then terminate this algorithm and take no further action. The user agent user interface should ensure that this never occurs.
    13. If the requestShipping value of - request@[[\options]] is true, then if the + request.[[\options]] is true, then if the shippingAddress attribute of request is null or if the shippingOption attribute of request is null, then terminate this @@ -1936,39 +1936,39 @@

      be defined for each payment method.

    14. If the requestShipping value of - request@[[\options]] is true, then copy the + request.[[\options]] is true, then copy the shippingAddress attribute of request to the shippingAddress attribute of response.
    15. If the requestShipping value of - request@[[\options]] is true, then copy the + request.[[\options]] is true, then copy the shippingOption attribute of request to the shippingOption attribute of response.
    16. If the requestPayerName value of - request@[[\options]] is true, then set the + request.[[\options]] is true, then set the payerName attribute of response to the payer's name provided by the user.
    17. If the requestPayerEmail value of - request@[[\options]] is true, then set the + request.[[\options]] is true, then set the payerEmail attribute of response to the payer's email address selected by the user.
    18. If the requestPayerPhone value of - request@[[\options]] is true, then set the + request.[[\options]] is true, then set the payerPhone attribute of response to the payer's phone number selected by the user.
    19. -
    20. Set response@[[\completeCalled]] to false. +
    21. Set response.[[\completeCalled]] to false.
    22. -
    23. Set request@[[\state]] to closed. +
    24. Set request.[[\state]] to closed.
    25. Resolve the pending promise - request@[[\acceptPromise]] with + request.[[\acceptPromise]] with response.
    @@ -2100,11 +2100,6 @@

    The terms Promise, internal slot, TypeError, JSON.stringify, and JSON.parse are defined by [[!ECMA-262-2015]]. -

    - This document uses the format object@[[\slotname]] to - mean the internal slot [[\slotname]] of the object - object. -

    The term JSON-serializable object used in this specification means an object that can be serialized to a string