/n software 3-D Secure V2 Node.js Edition

Questions / Feedback?

MessageExtension Event

Fired when a Message Extension is present in a message being parsed.

Syntax

server.on('MessageExtension', [callback])

Callback

The 'callback' is called when the 'MessageExtension' event is emited.

function(e){ }

The argument 'e' has the following properties:

e.name
e.id
e.data
e.critical
e.recognized

Remarks

Enables the parsing of Message Extension data by firing when extensions have been included in a ARes, CRes, RReq or PRes message that is being parsed. Message Extensions carry additional data not defined in the 3DS Protocol. This event fires once for each such extension. Event arguments correspond to the four elements comprising the extension, as well as an indication of whether or not the extension is recognized:

Name 'name' element - extension name
Id 'id' element - assigned extension group identifier
Data 'data' element - message extension data
Critical 'criticalityIndicator' element - criticality indicator
Recognized set by component to indicate whether or not the extension is recognized

If a 3-D Secure application receives a message containing a critical extension that it does not recognize, it must treat it as invalid and return Error Code = 202. This event will fire before the exception is thrown.

Copyright (c) 2022 /n software inc. - All rights reserved.
/n software 3-D Secure V2 Node.js Edition - Version 2.2 [Build 8318]