Is there any ICCDATA Parser available in PHP ? It should be ICCDATA data parser, I have ISO8583 parser, but that do NOT parses ICCDATA.
-
If google doesn't give you the answers you're looking for, then probably not. – jpaljasma Oct 23 '15 at 14:00
-
@user723826 If my answer answered your question I would appreciate you up voting and accepting the answer. Thanks. – CRSouser Oct 25 '15 at 23:58
1 Answers
The root of your answer is to properly understand the element's format and then searching for the correct thing.
I am assuming you are referring to Data Element 55 Integrated Circuit Data (ICC) when you say the ISO-8583 ICCDATA field. The EMV (ISO 7814), VISA, MasterCard, and other specifications are pretty clear on its format.
What you require is an X.690 BER-TLV parser to break down this portion of the message, not just a generic TLV field parser.
There have been some other posts on Stack Exchange as well on this, this is a good one. This is a good on on the differences between simple and BER-TLV.
GitHub has BER-TLV parsers if you need a jump start and this one by NuclearDog was one that came up towards the top of the list when searched.
Once you have your code written EMVLabs has a tool for helping you check you encoding or to see if you get the same result with their BER-TLV decoder tool. (obviously don't put production data there).