Back to Content

PaymentRequestUpdateEvent

files/en-us/web/api/paymentrequestupdateevent/index.md

latest1.5 KB
Original Source

{{securecontext_header}}{{APIRef("Payment Request API")}}

The PaymentRequestUpdateEvent interface is used for events sent to a {{domxref("PaymentRequest")}} instance when changes are made to shipping-related information for a pending {{domxref("PaymentRequest")}}. Those events are:

  • {{domxref("PaymentRequest.shippingaddresschange_event", "shippingaddresschange")}}
    • : Dispatched whenever the user changes their shipping address.
  • {{domxref("PaymentRequest.shippingoptionchange_event", "shippingoptionchange")}}
    • : Dispatched whenever the user changes a shipping option.

{{InheritanceDiagram}}

Constructor

  • {{domxref("PaymentRequestUpdateEvent.PaymentRequestUpdateEvent()","PaymentRequestUpdateEvent()")}}
    • : Creates a new PaymentRequestUpdateEvent object.

Instance properties

Provides only the properties inherited from its parent interface, {{domxref("Event")}}.

Instance methods

In addition to methods inherited from the parent interface, {{domxref("Event")}}, PaymentRequestUpdateEvent offers the following methods:

  • {{domxref("PaymentRequestUpdateEvent.updateWith()")}}
    • : If the event handler determines that information included in the payment request needs to be changed, or that new information needs to be added, it calls updateWith() with the information that needs to be replaced or added.

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}

See also