diff --git a/index.html b/index.html
index d7a4e77d..106a8eb9 100644
--- a/index.html
+++ b/index.html
@@ -202,7 +202,7 @@
Promise<void> abort();
Promise<boolean> canMakePayment();
- readonly attribute DOMString? paymentRequestId;
+ readonly attribute DOMString id;
readonly attribute PaymentAddress? shippingAddress;
readonly attribute DOMString? shippingOption;
readonly attribute PaymentShippingType? shippingType;
@@ -299,6 +299,7 @@
const details = {
+ id: "super-store-order-123-12312",
displayItems: [
{
label: "Sub-total",
@@ -343,6 +344,17 @@
Let serializedMethodData be an empty list.
+ Establish the request's id:
+
+ - If details.id
+ is missing, add an id member
+ to details and set its value to string that uniquely
+ identifies this payment request. It is RECOMMENDED that the
+ string be a UUID [[!RFC4122]].
+
+
+
Process payment methods:
- If the length of the methodData sequence is zero,
@@ -581,6 +593,16 @@
+
show() method
@@ -1117,6 +1139,7 @@
dictionary PaymentDetailsInit : PaymentDetailsBase {
+ DOMString id;
required PaymentItem total;
};
@@ -1130,6 +1153,17 @@
PaymentDetailsInit dictionary:
+ -
+ id
+
+ -
+ id is a free-form identifier for this payment request.
+
+ If an id member is not present, then the user agent
+ will generate a unique identifier for the payment request during
+ construction.
+
+
-
total
@@ -1615,7 +1649,7 @@
interface PaymentResponse {
serializer = { attribute };
- readonly attribute DOMString paymentRequestId;
+ readonly attribute DOMString requestId;
readonly attribute DOMString methodName;
readonly attribute object details;
readonly attribute PaymentAddress? shippingAddress;
@@ -1640,13 +1674,6 @@
"WEBIDL-LS#dfn-convert-to-serialized-value">converted to serialized
values as per [[!WEBIDL-LS]].
- -
- paymentRequestId
-
- -
- The same paymentRequestId present in the original
- PaymentRequest.
-
-
methodName
@@ -1718,6 +1745,13 @@
"PaymentResponse.payerPhone">payerPhone will be the phone number
chosen by the user.
+ -
+ requestId
+
+ -
+ The corresponding payment request id that spawned this payment response.
+
Let response be a new PaymentResponse.
+ Set the requestId
+ attribute value of response to the value of
+ request.[[\details]].id.
+
Set the methodName
attribute value of response to the payment method
identifier for the payment method that the user selected