Introduction
Authentication
Batch
Browser Payment
Gateway
Payment Plan
Session
Tokenization
Transaction
Wallet
RESOURCES
Changelog
ThreeDS
onEvent()
onEvent()
Method to subscribe for event changes. Subscribing to the events will enable the
integration code to listen for state changes during the payment flows.
The data
argument of the callback will provide the ThreeDS method that was used to initiate the
payment.
Usage Copied to clipboard
ThreeDS.onEvent(event, callback)
Example Copied to clipboard
ThreeDS.onEvent("EVENT_BEFORE_INITIATE_AUTHENTICATION", function (data) { //The data argument of the callback will provide the ThreeDS method that was used to initiate the payment });
Arguments Copied to clipboard
event
Copied to clipboard
Enumeration
REQUIRED
Event to subscribe to. See supported events list below.
EVENT_BEFORE_INITIATE_AUTHENTICATION
EVENT_AFTER_INITIATE_AUTHENTICATION
EVENT_BEFORE_AUTHENTICATE_PAYER
EVENT_AFTER_AUTHENTICATE_PAYER
callback
Copied to clipboard
Function
REQUIRED
The callback function
Return Value Copied to clipboard
None