Issuer / AcquirerFormat: bLength: var
72

Issuer Script Template 2

Tag ID
72
Format
b
Length (bytes)
var
Source
Issuer / Acquirer

What it is

Issuer Script Template 2 carries issuer script commands the card must process after the final GENERATE ACApplication CryptogramA cryptogram the card generates to approve or decline a transaction: TC (approve offline), ARQC (go online), or AAC (decline).. It is used for post-decision updates; the results of each command are reported back in Issuer Script Results (9F5B).

Where it appears

Returned by the issuer in the authorisation response; delivered to the card after the second GENERATE ACApplication CryptogramA cryptogram the card generates to approve or decline a transaction: TC (approve offline), ARQC (go online), or AAC (decline)..

How tag 72 is encoded

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

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

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

This value comes from the authorisation host rather than from the card or the terminal: the issuer returns it in the authorisation response, and the terminal hands it to the card, for example in EXTERNAL AUTHENTICATE, the second GENERATE AC or an issuer script.

Specification reference

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

Decode & build this tag