If present, EMV Tag 91 Issuer Authentication Data can have several different formats when returned in a transaction response. From my (limited) understanding, this may be determined by the card brand.
For example
- MasterCard Tag 91 includes Card Status Update as part of Tag 91 data
- Visa Tag 91 includes the Authorization Response Code as the last two bytes of Tag 91 data.
I need to solve a problem where Tag 8A Authorization Response Data is not returned as part of the EMV tag data in the case of a non approval response. The payment platform has advised to take the last 2 bytes of tag 91 and assign it to tag 8A, but tag 91 does not always contain the Authorization Response Code Value and Tag 8A is not always returned in some cases or brands.
I'd like to implement a more robust fix where we validate the format of tag 91 instead of just saying If Visa... do this... If Discover.... do that.
Any suggestions on how tag 91 is structured such as a reference to EMV Book documentation would be greatly appreciated.
Thank you,