PaymentRequestUpdateEvent Class

The event fired at a PaymentRequest (shippingaddresschange, shippingoptionchange) or a PaymentResponse (payerdetailchange) when the user changes something in the payment sheet (https://w3c.github.io/payment-request/#paymentrequestupdateevent-interface): the page updates the details of the request with PaymentRequestUpdateEvent.UpdateWith.

public class PaymentRequestUpdateEvent : Event
Inheritance
Event PaymentRequestUpdateEvent

Constructors

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

PaymentRequestUpdateEvent(string, PaymentRequestUpdateEventInit?)

PaymentRequestEvents.cs

Creates an event with the given type and initialization dictionary.

public PaymentRequestUpdateEvent(string type, PaymentRequestUpdateEventInit? eventInitDict = null)

Methods

NameDescription
UpdateWith(Task<PaymentDetailsUpdate>)Updates the details of the payment request with the value of a promise (https://w3c.github.io/payment-request/#dom-paymentrequestupdateevent-updatewith): the payment sheet waits until the promise is settled. A rejected promise, or a value that is not valid, aborts the payment request. Throws an InvalidStateError DomException when the event is not trusted, is already used, or its request is not shown or is already being updated.

UpdateWith(Task<PaymentDetailsUpdate>)

PaymentRequestEvents.cs

Updates the details of the payment request with the value of a promise (https://w3c.github.io/payment-request/#dom-paymentrequestupdateevent-updatewith): the payment sheet waits until the promise is settled. A rejected promise, or a value that is not valid, aborts the payment request. Throws an InvalidStateError DomException when the event is not trusted, is already used, or its request is not shown or is already being updated.

public void UpdateWith(Task<PaymentDetailsUpdate> detailsPromise)