diff --git a/index.html b/index.html index 2ce307fb..67eaee36 100644 --- a/index.html +++ b/index.html @@ -171,7 +171,7 @@
This API also enables web sites to take advantage of more secure @@ -575,8 +584,8 @@
+ A PaymentRequest's onpaymentmethodchange attribute is + an EventHandler for a PaymentRequestUpdateEvent named + "paymentmethodchange". +
+paymentmethodchange
+ + [Constructor(DOMString type, optional PaymentMethodChangeEventInit eventInitDict), SecureContext, Exposed=Window] + interface PaymentMethodChangeEvent : PaymentRequestUpdateEvent { + readonly attribute DOMString methodName; + readonly attribute object? methodDetails; + }; ++
+ When getting, returns the value it was initialized with. See + methodDetails member of PaymentMethodChangeEventInit + for more information. +
++ When getting, returns the value it was initialized with. See + methodName member of PaymentMethodChangeEventInit for + more information. +
++ dictionary PaymentMethodChangeEventInit : PaymentRequestUpdateEventInit { + required DOMString methodName; + object? methodDetails; + }; ++
+ A payment handler MAY run the payment method changed + algorithm when the user changes payment method with + methodDetails, which is either dictionary or an object or null, and a methodName, + which is a DOMString that represents the payment method + identifier of the payment handler the user is interacting + with: +
+