EMV tag 95: TVR structure and what to check when a flag is set

By · published · technically reviewed

Runs in your browser. This page loads no analytics or third-party scripts and does not send what you type.

The Terminal Verification Results (tag 95) record the outcome of the terminal’s checks during an EMV transaction. The meaning of each bit is defined in EMV Book 3, Annex C5. This article adds where each group of flags comes from and what to check when one is set.

The TVR, TSI and CVR

The TVR is a five-byte bitmap that the terminal builds during the transaction. It records the outcome of offline data authentication, processing restrictions, cardholder verification, terminal risk management, and issuer authentication and script processing. The terminal sends it to the card in the GENERATE AC command data (it is in the usual CDOL1) and to the issuer in the authorisation message.

Two other data objects are often read alongside it:

  • The TSI (tag 9B), the Transaction Status Information, is also maintained by the terminal. It records which functions were performed (offline data authentication, cardholder verification, card risk management, issuer authentication, terminal risk management, script processing), not their outcome.
  • The CVR, the Card Verification Results, is card data. The card sets it from its own checks and decisions and returns it to the issuer inside the Issuer Application Data (tag 9F10). Its layout belongs to the card’s scheme profile (Visa and Mastercard define different CVRs).

A flag in the TVR tells you what the terminal found. Why it found it can depend on terminal settings, on data read from the card, or on counters the card keeps.

Byte by byte

Byte 1: offline data authentication

  • SDA failed, DDA failed, CDA failed. The terminal could not authenticate the card’s data with the method it chose. Recover the certificates with the EMV certificate validator before suspecting the card. A CA public key that the terminal does not hold also ends in the failure bit for the selected method: EMV treats a missing CA key as an authentication failure, not as “not performed”. Check the CA key index (tag 8F) against the terminal’s key list.
  • ICC data missing. A data object needed for the selected method was not in the card’s records (for example the CA key index or the issuer certificate). It is set together with the failure bit.
  • Offline data authentication was not performed. The card and the terminal had no method in common (compare the AIP, tag 82, with the terminal capabilities, tag 9F33), or the terminal does not perform offline data authentication for this transaction.
  • Card appears on terminal exception file. The PAN is on the terminal’s exception (hot) list.

Byte 2: processing restrictions

  • Expired application and application not yet effective compare the card’s expiry and effective dates with the terminal’s transaction date. Check the terminal’s date as well as the card’s dates.
  • ICC and terminal have different application versions compares the card’s application version number (9F08) with the terminal’s (9F09).
  • Requested service not allowed for card product comes from the Application Usage Control (9F07): for example a cash or international transaction the card does not allow.
  • New card is set during velocity checking when the card’s Last Online ATC Register is zero (see byte 4).

Byte 3: cardholder verification

  • PIN Try Limit exceeded. The card’s PIN try counter is exhausted: it was already zero when the terminal read it (GET DATA for the PIN Try Counter), or the last VERIFY used up the remaining tries. This reflects the card’s state rather than a mismatch between the CVM list and the terminal.
  • PIN entry required and PIN pad not present or not working. The selected CVM needs a PIN and the terminal cannot take one. This is a terminal capability or hardware condition.
  • PIN entry required, PIN pad present, but PIN was not entered. The PIN was bypassed.
  • Unrecognised CVM and cardholder verification was not successful come from processing the card’s CVM list (8E). The CVM Results (9F34) show which rule was finally applied and its result.
  • Online CVM captured (in older versions of the specification, “online PIN entered”) means a PIN was captured for the issuer to verify.

Byte 4: terminal risk management

  • Transaction exceeds floor limit. The amount is greater than or equal to the terminal floor limit. This one is the terminal’s configuration.
  • Transaction selected randomly for online processing and merchant forced transaction online are also terminal-side.
  • Lower and upper consecutive offline limit exceeded come from velocity checking, which uses the card’s counters and limits. The terminal reads the Application Transaction Counter (ATC, 9F36) and the Last Online ATC Register (9F13) from the card with GET DATA, and compares their difference with the card’s Lower Consecutive Offline Limit (9F14) and Upper Consecutive Offline Limit (9F23). Velocity checking only takes place when the card has both limits.

A worked example, with values chosen for this article: the card returns ATC 0009 and Last Online ATC Register 0005, so four transactions have taken place since the last online one. With a lower limit of 03 and an upper limit of 05, the terminal sets “lower consecutive offline limit exceeded” and leaves the upper bit clear. If the Last Online ATC Register were 0000, the terminal would also set “new card” in byte 2, and the difference of nine would set the upper bit too. If the terminal cannot read the two counters, it sets both limit bits.

Byte 5: issuer authentication and scripts

  • Issuer authentication failed. The card rejected the issuer’s response cryptogram (ARPC) in EXTERNAL AUTHENTICATE. Common causes: the issuer used a different ARPC method from the one the card expects, a different key, or a different ARQC or response code as input. The ARQC verifier computes ARPC methods 1 and 2 from the ARQC you give it. When issuer authentication happens inside the second GENERATE AC instead of EXTERNAL AUTHENTICATE, the result is recorded in the card’s CVR rather than in this bit.
  • Script processing failed before / after final GENERATE AC. An issuer script command (templates 71 and 72) returned an error status. The APDU log shows which command.
  • Default TDOL used. The terminal used its own default TDOL to build the TC hash value because the card did not provide one.

Decoder

The value below is the TVR from the pyemv VisaCVN18 example (8000048000): offline data authentication not performed, an online CVM captured, and an amount over the floor limit. Paste your own value, a record or a full response, and the parser expands each set bit.

Input

Paste an FCI, GPO response, record dump, or a DOL.

Result

1 data object decoded.

95 Terminal Verification Results (TVR) [5]
8000048000
✓ b1 bit8: Offline data authentication was not performed
✓ b3 bit3: Online CVM captured (called Online PIN entered before EMV 4.4)
✓ b4 bit8: Transaction exceeds floor limit

The EMV transaction walkthrough shows the TVR being built step by step in a contact chip-and-PIN purchase, and the tag dictionary has a page for each tag mentioned here.

References

See also

Related tools