PaymentMethodChangeEvent Class
The event fired at a PaymentRequest when the user changes the payment method in the payment handler (https://w3c.github.io/payment-request/#paymentmethodchangeevent-interface), e.g. a card whose billing address changes the taxes.
public sealed class PaymentMethodChangeEvent : PaymentRequestUpdateEvent- Inheritance
PaymentRequestUpdateEventPaymentMethodChangeEvent
Constructors
| Name | Description |
|---|---|
| PaymentMethodChangeEvent(string, PaymentMethodChangeEventInit?) | Creates an event with the given type and initialization dictionary. |
PaymentMethodChangeEvent(string, PaymentMethodChangeEventInit?)
PaymentRequestEvents.csCreates an event with the given type and initialization dictionary.
public PaymentMethodChangeEvent(string type, PaymentMethodChangeEventInit? eventInitDict = null)Properties
| Name | Description |
|---|---|
| MethodDetails | Gets the data of the payment method (a JavaScript object), or null. |
| MethodName | Gets the payment method identifier of the payment handler. |
MethodDetails
PaymentRequestEvents.csGets the data of the payment method (a JavaScript object), or null.
public object? MethodDetails { get; }Property value
See also
MethodName
PaymentRequestEvents.csGets the payment method identifier of the payment handler.
public string MethodName { get; }