From 26b092664b26cf06293a3eab462ef8c4005c82f5 Mon Sep 17 00:00:00 2001
From: Ade Bateman PaymentRequest interface
user agent while the user is providing input before approving or denying a payment request.
+ The shippingAddress
and shippingOption
attributes
+ are populated during processing if the requestShipping
flag is set.
+
The [SecureContext]
extended attribute means that the PaymentRequest
is only exposed within a secure context and won't be accessible elsewhere.
@@ -420,11 +425,11 @@
details
contains a shippingOptions
sequence with a
length of 1, then set shippingOption
to the id
of
- the only ShippingOption
in the sequence.
+ the only PaymentShippingOption
in the sequence.
details
contains a shippingOptions
sequence with a
- length greater than 1, and if any ShippingOption
in the sequence
+ length greater than 1, and if any PaymentShippingOption
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
.
@@ -634,16 +639,16 @@ -dictionary CurrencyAmount { +dictionary PaymentCurrencyAmount { required DOMString currency; required DOMString value; };
- A CurrencyAmount
dictionary is used to supply monetary amounts.
- The following fields MUST be supplied for a CurrencyAmount
to be valid:
+ A PaymentCurrencyAmount
dictionary is used to supply monetary amounts.
+ The following fields MUST be supplied for a PaymentCurrencyAmount
to be valid:
currency
dictionary PaymentItem { required DOMString label; - required CurrencyAmount amount; + required PaymentCurrencyAmount amount; };
@@ -798,7 +803,7 @@
amount
CurrencyAmount
containing the monetary amount for the item.
+ A PaymentCurrencyAmount
containing the monetary amount for the item.
PaymentItem
with amounts in more than once currency.
@@ -875,17 +880,17 @@ - dictionary ShippingOption { + dictionary PaymentShippingOption { required string id; required string label; - required CurrencyAmount amount; + required PaymentCurrencyAmount amount; boolean selected = false; };
- The ShippingOption dictionary has fields describing a shipping option. A web page can + The PaymentShippingOption dictionary has fields describing a shipping option. A web page can provide the user with one or more shipping options by calling the updateWith method in response to a change event.
@@ -894,17 +899,17 @@id
ShippingOption
. It MUST be
+ PaymentShippingOption
. It MUST be
unique for a given PaymentRequest
.label
amount
CurrencyAmount
containing the monetary amount for the item.
+ A PaymentCurrencyAmount
containing the monetary amount for the item.
selected
true
to indicate that this is the default selected ShippingOption
+ true
to indicate that this is the default selected PaymentShippingOption
in a sequence. User agents SHOULD display this option by default in the user interface.shippingoptionchange
.shippingOption
attribute on request to the
- id
string of the ShippingOption
provided by the user.
+ id
string of the PaymentShippingOption
provided by the user.