ApplePayPaymentMethodUpdate
Updated transaction details to provide after the user changes the payment method in the payment sheet.
Declaration
dictionary ApplePayPaymentMethodUpdate {
required ApplePayLineItem newTotal;
sequence < ApplePayLineItem > newLineItems;
sequence < ApplePayPaymentTokenContext > newMultiTokenContexts;
ApplePayAutomaticReloadPaymentRequest newAutomaticReloadPaymentRequest;
ApplePayRecurringPaymentRequest newRecurringPaymentRequest;
ApplePayDeferredPaymentRequest newDeferredPaymentRequest;
sequence < ApplePayError > errors;
sequence < ApplePayShippingMethod > newShippingMethods;
};Mentioned in
Overview
If a user changes their payment method on the payment sheet, you respond by updating the payment request details in ApplePayPaymentMethodUpdate.
You must provide an updated total for the transaction in the newTotal line item. You can optionally provide updated line items if the change to the payment method changes the line items.