onpaymentauthorized
An event handler the system calls when the user has authorized the Apple Pay payment with Touch ID, Face ID, or a passcode.
Declaration
attribute EventHandler onpaymentauthorized;Discussion
This attribute must be set to a function that accepts an events argument; for example, session.onpaymentauthorized = function(event) {}.
The event parameter contains the payment (ApplePayPayment) attribute.
The onpaymentauthorized function must complete the payment and respond by calling completePayment before the 30 second timeout, after which a message appears stating that the payment couldn’t be completed.