onpaymentmethodselected
An event handler to call when the user selects a new payment method.
Declaration
attribute EventHandler onpaymentmethodselected;Discussion
This attribute must be set to a function that accepts an events argument; for example, session.onpaymentmethodselected = function(event) {}.
The event parameter contains the paymentMethod attribute. Access it like this:
var myPaymentMethod = event.paymentMethod;
The onpaymentmethodselected function must respond by calling completePaymentMethodSelection before the 30 second timeout, after which a message appears stating that the payment could not be completed.