An event handler that is called when a new payment 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
payment attribute. Access it like this:
onpaymentmethodselected function must respond by calling
complete before the 30 second timeout, after which a message appears stating that the payment could not be completed.