Transaction Currency Code
What it is
Where it appears
How tag 5F2A is encoded
EMV data objects are BER-TLV: tag, then length, then value. 5F2A is a 2-byte, application class, primitive tag (tag number 42), so its value is plain data rather than nested TLV objects.
5F01011111Bits 8–7 = 01: application class. Bit 6 = 0: primitive. Bits 5–1 all set: the tag number continues in the next byte.2A00101010Bit 8 = 0: last tag byte. Bits 7–1 = 42.Length
The value is always 2 bytes, so the length field is 02. A complete 5F2A object starts 5F 2A 02 and is 5 bytes long in all.
Value format n
Format n is numeric: BCD, two digits per byte, right-aligned and padded with leading zeros. 2 bytes hold 4 digits.
Who supplies it
The terminal supplies this value. A card that needs it lists the tag in a data object list (PDOL, CDOL1, CDOL2 or DDOL), and the terminal places the value, at the length the card asked for, in the matching command. In a DOL, 5F2A appears as 5F 2A 02: the tag followed by the length the card wants.
Specification reference
Defined in: EMV 4.x Book 3 (Application Specification), Annex A — Data Element Dictionary
Example values
0840US Dollar (840)0978Euro (978)