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.
ThreeDS.onEvent(event, callback)
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 });
Event to subscribe to. See supported events list below.
The callback function
Here is the list of events currently supported by the ThreeDS API:
None