PaymentMethodChangeEvent

The PaymentMethodChangeEvent interface of the Payment Request API describes the PaymentRequest/paymentmethodchange_event event which is fired by some payment handlers when the user switches payment instruments (e.g., a user selects a 'store' card to make a purchase while using Apple Pay). Available only in secure contexts.

MDN Reference

Constructors

Link copied to clipboard
constructor(type: EventType<PaymentMethodChangeEvent>, init: PaymentMethodChangeEventInit = definedExternally)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

The read-only methodDetails property of the PaymentMethodChangeEvent interface is an object containing any data the payment handler may provide to describe the change the user has made to their payment method.

Link copied to clipboard

The read-only methodName property of the PaymentMethodChangeEvent interface is a string which uniquely identifies the payment handler currently selected by the user.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

fun updateWith(detailsPromise: PaymentDetailsUpdate)

The updateWith() method of the ``js-nolint updateWith(details) `` - details - : Either an object or a Promise that resolves to an object, specifying the changes applied to the payment request: - displayItems MISSING: optional_inline] - : An array of objects, each describing one line item for the payment request.