diff --git a/index.html b/index.html index 3310dece..18482f21 100644 --- a/index.html +++ b/index.html @@ -423,7 +423,13 @@

PaymentRequest constructor

Set the value of the shippingOption attribute on request to null.
  • - If details contains a shippingOptions sequence and + If the details.shippingOptions sequence contains multiple + PaymentShippingOption objects that have the same id, + then set the shippingOptions field of request@[[\details]] + to an empty sequence. +
  • +
  • + If request@[[\details]] contains a shippingOptions sequence and if any PaymentShippingOption in the sequence has the selected field set to true, then set shippingOption to the id of the last ShippingOption @@ -1172,13 +1178,17 @@

    updateWith()

    If details contains a shippingOptions sequence, then:
    1. - Copy the shippingOptions sequence from details to the + If the details.shippingOptions sequence contains multiple + PaymentShippingOption objects that have the same id, + then set the shippingOptions field of request@[[\details]] + to an empty sequence. + Otherwise copy the shippingOptions sequence from details to the shippingOptions field of target@[[\details]].
    2. Let newOption be null.
    3. - If details contains a shippingOptions sequence - and if any ShippingOption in the sequence + If target@[[\details]] contains a shippingOptions sequence + and if any ShippingOption in the sequence has the selected field set to true, then set newOption to the id of the last ShippingOption in the sequence with selected set to true.