diff --git a/specs/paymentrequest.html b/specs/paymentrequest.html index 32f625a6..df9c3bb7 100644 --- a/specs/paymentrequest.html +++ b/specs/paymentrequest.html @@ -640,7 +640,8 @@
dictionary PaymentDetails {
- sequence<PaymentItem> items;
+ PaymentItem total;
+ sequence<PaymentItem> displayItems;
sequence<ShippingOption> shippingOptions;
};
@@ -654,13 +655,18 @@ PaymentDetails dictionary:
itemstotalPaymentItem 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.
+ displayItemsPaymentItem 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