paymentMethodChangeEvent = new PaymentMethodChangeEvent(type, options);
DOMStringwhich must contain the string
paymentmethodchange, the name of the only type of event which uses the
PaymentMethodChangeEventInitdictionary which may contain zero or more of the following properties:
DOMStringcontaining the payment method identifier for the payment handler being used. This is an empty string by default.
An object providing payment method-specific information describing the changes made to the payment, or
nullif there is no additional information available or required. This is
PaymentMethodChangeEvent object describing a change to
the options specified for the payment method given in the
The type of the
methodDetails property depends on the payment method. For
https://example.com/pay, indicating that the
Example Pay payment method is being used for validation, the shape of
is defined by the payment method.
|Payment Request API |
BCD tables only load in the browser