diff --git a/specs/paymentrequest.html b/specs/paymentrequest.html index 53e194a5..cdbb674c 100644 --- a/specs/paymentrequest.html +++ b/specs/paymentrequest.html @@ -425,6 +425,13 @@
shippingOption to the id of
the only ShippingOption in the sequence.
+ details contains a shippingOptions sequence with a
+ length greater than 1, and if any ShippingOption in the sequence
+ has the selected field set to true, then set
+ shippingOption to the id of the last ShippingOption
+ in the sequence with selected set to true.
+ If the sequence only contains one item, then this is the shipping option that
will be used and shippingOption will be set to the id
of this option without running the shipping option changed algorithm.
If an item in the sequence has the selected field set to true,
+ then this is the shipping option that will be used by default and shippingOption
+ will be set to the id of this option without running the shipping option changed
+ algorithm. Authors SHOULD NOT set selected to true on more than
+ one item. If more than one item in the sequence has selected set to true,
+ then user agents MUST select the last one in the sequence.
The shippingOptions field is only used if the PaymentRequest was
constructed with PaymentOptions requestShipping
set to true.
+ If the sequence contains only one item or if the sequence has an item with the selected
+ field set to true, then authors SHOULD ensure that the total field includes
+ the cost of the shipping option. This is because no shippingoptionchange event
+ will be fired for this option unless the user selects an alternative option first.
+
@@ -835,6 +855,9 @@
CurrencyAmount containing the monetary amount for the item.
selectedtrue to indicate that this is the default selected ShippingOption
+ in a sequence. User agents SHOULD display this option by default in the user interface.id of the only
ShippingOption in the sequence.
+ details contains a shippingOptions sequence with a
+ length greater than 1, 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.
+ shippingOption on target to
newOption.