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
PaymentRequestUpdateEvent PaymentMethodChangeEvent

Constructors

NameDescription
PaymentMethodChangeEvent(string, PaymentMethodChangeEventInit?)Creates an event with the given type and initialization dictionary.

PaymentMethodChangeEvent(string, PaymentMethodChangeEventInit?)

PaymentRequestEvents.cs

Creates an event with the given type and initialization dictionary.

public PaymentMethodChangeEvent(string type, PaymentMethodChangeEventInit? eventInitDict = null)

Properties

NameDescription
MethodDetailsGets the data of the payment method (a JavaScript object), or null.
MethodNameGets the payment method identifier of the payment handler.

Gets the data of the payment method (a JavaScript object), or null.

public object? MethodDetails { get; }

Gets the payment method identifier of the payment handler.

public string MethodName { get; }