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.
Constructors
Properties
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.
The read-only methodName
property of the PaymentMethodChangeEvent interface is a string which uniquely identifies the payment handler currently selected by the user.
Functions
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.