From e930e0d2fd8cfbd0237601d763b2808811e268ca Mon Sep 17 00:00:00 2001
From: Ade Bateman PaymentDetailsModifier dictionary
PaymentOptions dictionary
dictionary PaymentOptions {
+ boolean requestPayerName = false;
boolean requestPayerEmail = false;
boolean requestPayerPhone = false;
boolean requestShipping = false;
@@ -824,6 +825,12 @@
PaymentOptions dictionary
The following fields MAY be passed to the PaymentRequest
constructor:
requestPayerName
true
to allow a merchant to make a booking in the payer's name.
+ requestPayerEmail
shippingOption
will
be the id
attribute of the selected shipping option.
payerName
true
in the PaymentOptions
+ passed to the PaymentRequest constructor, then payerName
will
+ be the name provided by the user.
+ payerEmail
true
in the PaymentOptions
@@ -1428,6 +1442,11 @@ true
, then copy the shippingOption
attribute of
request to the shippingOption
attribute of response.
+ requestPayerName
value of request@[[\options]]
+ is true
, then set the payerName
attribute of
+ response to the payer's name provided by the user.
+ requestPayerEmail
value of request@[[\options]]
is true
, then set the payerEmail
attribute of
From 702fc25c3df691f9a759b15aaac2d1486610aa4a Mon Sep 17 00:00:00 2001
From: Ade Bateman @@ -876,6 +877,13 @@
PaymentCurrencyAmount
containing the monetary amount for the item.
pending
true
this flag means that the amount
field is not final.
+ This is commonly used to show items such as shipping or tax amounts that depend upon
+ selection of shipping address or shipping option. User agents MAY indicate pending
+ fields in the user interface for the payment request.
+
- The shippingAddress
and shippingOption
attributes
+ The shippingAddress
, shippingOption
,
+ and shippingType
attributes
are populated during processing if the requestShipping
flag is set.
shippingOption
attribute on request to null.
shippingType
attribute on request to null.
+ options.requestShipping
is set to true
, then set the value of the
+ shippingType
attribute on request to options.shippingType
.
+ If options.shippingType
is not a valid PaymentShippingType
value
+ then set the shippingType
attribute on request to "shipping"
.
+ details.shippingOptions
sequence contains multiple
PaymentShippingOption
objects that have the same id
,
@@ -809,12 +825,19 @@ -dictionary PaymentOptions { - boolean requestPayerName = false; - boolean requestPayerEmail = false; - boolean requestPayerPhone = false; - boolean requestShipping = false; -}; + enum PaymentShippingType { + "shipping", + "delivery", + "pickup" + }; + + dictionary PaymentOptions { + boolean requestPayerName = false; + boolean requestPayerEmail = false; + boolean requestPayerPhone = false; + boolean requestShipping = false; + PaymentShippingType shippingType = "shipping"; + };
@@ -850,6 +873,26 @@
true
when physical goods need to be shipped by the merchant to the user.
This would be set to false
for an online-only electronic purchase transaction.
+ shippingType
requestShipping
is set to true
, then the shippingType
+ field may be used to influence the way the user agent presents the user interface for
+ gathering the shipping address.
+ The PaymentShippingType
supports the following values:
shipping
delivery
pickup
The shippingType
field only affects the user interface for the payment request.