Response Event
Used with Interleaved Transaction Mode.
Syntax
tsysretail.on('Response', [callback])
Callback
The 'callback' is called when the 'Response' event is emited.
function(e){ }
The argument 'e' has the following properties:
e.transactionId e.responseCode e.responseText e.responseApprovalCode
Remarks
When InterleavedMode configuration setting is set to True the component will send interleaved transactions without blocking and waiting for a response. For every response that the class receives from TSYS the Response event will fire. TransactionId parameter can be used to identify the transaction. ResponseCode and ResponseText can be used to determine if a transaction was approved or declined.