Card (ICC)Format: bLength: var
77

Response Message Template Format 2

Tag ID
77
Format
b
Length (bytes)
var
Source
Card (ICC)

What it is

Response Message Template Format 2 is the TLV-encoded container the card uses to answer GET PROCESSING OPTIONS or GENERATE ACApplication CryptogramA cryptogram the card generates to approve or decline a transaction: TC (approve offline), ARQC (go online), or AAC (decline).. Because every element carries its own tag, the terminal can parse it generically. Format 2 (77) is the modern alternative to the tag-less Format 1 (80).

Where it appears

Returned by the card in the GPOGet Processing OptionsThe EMV command that starts a transaction; the card responds with the AIP and the records to read.View in glossary → or GENERATE ACApplication CryptogramA cryptogram the card generates to approve or decline a transaction: TC (approve offline), ARQC (go online), or AAC (decline). response.

How tag 77 is encoded

EMV data objects are BER-TLV: tag, then length, then value. 77 is a 1-byte, application class, constructed tag (tag number 23), so its value is itself a series of TLV objects that a parser has to walk in turn.

7701110111Bits 8–7 = 01: application class. Bit 6 = 1: constructed. Bits 5–1 give tag number 23.

Length

The length varies, so read it from the length field: one byte for values up to 127 bytes, 81 plus one byte up to 255, 82 plus two bytes beyond that.

Value format b

Format b is binary: the bits mean what this tag defines, with no padding or character conversion.

Who supplies it

The card supplies this value. The terminal reads it from the card’s responses during application selection, GET PROCESSING OPTIONS, READ RECORD or GENERATE AC, depending on where the issuer personalised it.

Specification reference

Defined in: EMV 4.x Book 3 (Application Specification), Annex A — Data Element Dictionary

Decode & build this tag