The PaymentMethodChangeEvent()
constructor creates a new PaymentMethodChangeEvent
object providing details about a paymentmethodchange
event.
new PaymentMethodChangeEvent(type)
new PaymentMethodChangeEvent(type, options)
A new PaymentMethodChangeEvent
object describing a change to the options specified for the payment method given in the methodName
property.
The type of the methodDetails
property depends on the payment method. For example, if methodName
is https://example.com/pay
, indicating that the Example Pay payment method is being used for validation, the shape of methodDetails
is defined by the payment method.