Instance Property

onshippingmethodselected

An event handler that is called when a shipping method is selected.

Declaration

attribute EventHandler onshippingmethodselected;

Discussion

This attribute must be set to a function that accepts an events argument; for example, session.onshippingmethodselected = function(event) {}.

The event parameter contains the shippingMethod attribute.

The onshippingmethodselected function must respond by calling completeShippingMethodSelection before the 30 second timeout, after which a message appears stating that the payment could not be completed.

See Also

Handling Shipping Method Updates

completeShippingMethodSelection

Completes the selection of a shipping method with an update.

ApplePayShippingMethodSelectedEvent

An event object that contains the shipping method.

ApplePayShippingMethodUpdate

Updated transaction details resulting from a change in shipping method.