ApplePayShippingMethodUpdate
Updated transaction details that result from a change in shipping method.
Declaration
dictionary ApplePayShippingMethodUpdate {
required ApplePayLineItem newTotal;
sequence < ApplePayLineItem > newLineItems;
sequence < ApplePayPaymentTokenContext > newMultiTokenContexts;
ApplePayAutomaticReloadPaymentRequest newAutomaticReloadPaymentRequest;
ApplePayRecurringPaymentRequest newRecurringPaymentRequest;
ApplePayDeferredPaymentRequest newDeferredPaymentRequest;
sequence < ApplePayShippingMethod > newShippingMethods;
};Mentioned in
Overview
Provide updated transaction details if the user changes the shipping method in the payment sheet. Recalculate the total for the payment, because it may change as a result of shipping method changes. The newTotal value is required.