I'm working on a C platform and I want to read the AFL of a card. If the previous command, select of the AID, don't give me a PDOL tag, it's ok: I can read the AFL without issues. But I need to write a method that can generate a GET PROCESSING OPTION regardless the PDOL.
So the questions are:
- How can I write an universal method that work despite the PDOL?
Have I to map every single possible TAG? - How can I format the GPO command with the correct data? Look the following example:
SELECT AID Response
PDOL: 9F 1A 02
So I have to put the Terminal Country Code, in my case Italy: 380
So the GPO call is:
80 A0 00 00 04 83 02 03 80 00
But the response that I have is 6D 00
: Instruction code not supported or invalid
Where am I wrong?
I'm programming on Ingenico Pos (Point of sale).