An event handler that is called when a shipping method is selected.
- Safari Desktop 10.0+
- Safari Mobile 10.0+
- Apple Pay JS
This attribute must be set to a function that accepts an
events argument; for example,
The event parameter contains the
onshippingmethodselected function must respond by calling
complete before the 30 second timeout, after which a message appears stating that the payment could not be completed.