From f8d1f77e23b56583547208a9146ad9cae9d1e308 Mon Sep 17 00:00:00 2001
From: Ade Bateman CurrencyAmount
PaymentDetails dictionary
dictionary PaymentDetails {
- sequence<PaymentItem> items;
+ PaymentItem total;
+ sequence<PaymentItem> displayItems;
sequence<ShippingOption> shippingOptions;
};
@@ -654,13 +655,18 @@ PaymentDetails dictionary
The following fields are part of the PaymentDetails
dictionary:
items
total
PaymentItem
dictionaries indicates what the payment
- request is for. The sequence must contain at least one PaymentItem
. The last
- PaymentItem
in the sequence represents the total amount of the payment
- request. The user agent MAY validate that the total amount is the sum of the
- preceding items, but it is the responsibility of the calling code to ensure that.
+ This PaymentItem
contains the total amount of the payment request.
+ displayItems
PaymentItem
dictionaries contains line items
+ for the payment request that the user agent MAY display. For example, it might include
+ details of products or breakdown of tax and shipping. It is optional to provide this
+ information.
+ The user agent MAY validate that the total
amount is the
+ sum of these items, but it is the responsibility of the calling code to ensure that.
shippingOptions