TerminalFormat: nLength: 1
9F39

POS Entry Mode

Tag ID
9F39
Format
n
Length (bytes)
1
Source
Terminal

What it is

POS Entry Mode is a single numeric byte (n 2) describing how the PAN was captured: manual key entry, magnetic stripe, contact chip or contactless. It is the first two digits of the ISO 8583:1987 POS entry mode; the PIN entry capability digit of the ISO 8583 field is not part of it.

Where it appears

Set by the terminal based on how the card was read.

How tag 9F39 is encoded

EMV data objects are BER-TLV: tag, then length, then value. 9F39 is a 2-byte, context-specific class, primitive tag (tag number 57), so its value is plain data rather than nested TLV objects.

9F10011111Bits 8–7 = 10: context-specific class. Bit 6 = 0: primitive. Bits 5–1 all set: the tag number continues in the next byte.
3900111001Bit 8 = 0: last tag byte. Bits 7–1 = 57.

Length

The value is always 1 byte, so the length field is 01. A complete 9F39 object starts 9F 39 01 and is 4 bytes long in all.

Value format n

Format n is numeric: BCD, two digits per byte, right-aligned and padded with leading zeros. 1 byte hold 2 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, 9F39 appears as 9F 39 01: 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

05Contact chip read
07Contactless chip (EMV)
91Contactless magnetic-stripe mode