Structure

ApplePayShippingContactUpdate

Updated transaction details resulting from a change in shipping contact, including any errors.

Declaration

dictionary ApplePayShippingContactUpdate {
    sequence < ApplePayError > errors;
    sequence < ApplePayShippingMethod > newShippingMethods;
    required ApplePayLineItem newTotal;
    sequence < ApplePayLineItem > newLineItems;
};

Overview

You are required to provide an updated total after shipping contact information changes. You can optionally provide a list of errors, updated shipping methods, or updated line items.

The status is assumed to be success if no errors are passed in.

Topics

Updated Shipping Contact Properties

errors

List of custom errors to display on the payment sheet.

newLineItems

An optional list of updated line items.

newShippingMethods

A list of shipping methods that are available to the updated shipping contact.

newTotal

The new total resulting from a change in the shipping contact.

See Also

Handling Shipping Contact Updates

onshippingcontactselected

An event handler that is called when a shipping contact is selected in the payment sheet.

completeShippingContactSelection

Completes the selection of a shipping contact with an update.

ApplePayShippingContactSelectedEvent

An event object that contains the shipping address selected by the user.