Structure

ApplePayPaymentMethodUpdate

Updated transaction details resulting from a change in payment method.

Declaration

dictionary ApplePayPaymentMethodUpdate {
    required ApplePayLineItem newTotal;
    sequence < ApplePayLineItem > newLineItems;
};

Overview

Providing an updated total for the transaction is required. You can optionally provide updated line items if the change to the payment method changes the line items.

Available in Apple Pay JS API version 3.

Topics

Updating Payment Method Properties

newLineItems

An optional list of line items.

newTotal

The new total resulting from a change in the payment method.

See Also

Handling Payment Method Updates

onpaymentmethodselected

An event handler that is called when a new payment method is selected.

completePaymentMethodSelection

Completes the selection of a payment method with an update.

ApplePayPaymentMethodSelectedEvent

An event object that contains the payment method.

ApplePayPaymentMethod

A dictionary that describes an Apple Pay payment card.