Emv Stepbystep
Emv Stepbystep
* The Chip has it's own track 2 data (equivalent) stored inside.
This means that we have
track 2 data on the magnetic stripe, and also,
track 2 data equivalent (tag 57) on the chip (possibly different!)
Steps of an EMV transaction:
Background Information AID
• Every application in the world has a unique Application Identifier (AID)
• AID is used to address an application in the card
• Every Terminal has a list of all AIDs it supports
• Consists of
• a registered application provider identifier (RID) defined in ISO 7816-5 (5 bytes)
• followed by a proprietary application identifier extension (PIX), which enables the application provider to differentiate among the
different applications offered (0-11 bytes)
• AID is printed on all cardholder receipts
• Use of PSE (Payment System Environment = list of available applications), if supported
• Direct selection of AID if PSE is not supported
• Customer chooses one or automatically by terminal in case there is only one
Steps of an EMV transaction:
4. Processing Restrictions
• Application Usage Control AUC ('9F07')
• Card defines which services can be authorized:
• International / Domestic
• Type of service
• Cash / Cashback / Goods / Services
• Terminal type
• ATM / POS
• Application version number ('9F08')
• Terminal knows the range of versions that are supported
• Application effective date ('5F25')
• Application expiry date ('5F24')
Steps of an EMV transaction:
5. Cardholder Verification Method (CVM)
• Various methods are available
• Card defines which services can be authorized:
• Plaintext PIN against chip
• Enciphered PIN against chip
• Enciphered PIN verified online
• Signature
• Biometrics
• No CVM required
• Terminal and chip must agree on one
Steps of an EMV transaction:
6. Terminal Risk Management
• Floor Limits
• Random Transaction Selection
• Velocity Checking
• Not required in online-only environments!
• Prevents split sales
Steps of an EMV transaction:
7. Terminal Action Analysis
• The TERMINAL shall make a preliminary decision to reject the
transaction, complete it online, or complete it offline
• The TERMINAL checks the TVR, TAC and IAC (see next slides)
• The TERMINAL may contain three data elements to reflect the
acquirer‘s and Terminal selected action to be taken based upon the
content of the TVR (in this order of priority):
• Terminal Action Code – Denial ("TAC_DENIAL") (see next slides)
• Terminal Action Code – Online ("TAC_ONLINE")
• Terminal Action Code – Default ("TAC_DEFAULT")
Steps of an EMV transaction:
7. Rules for Terminal Action Analysis
• Processing of the action codes is done in pairs
• Issuer Action Code - Denial is processed together with the Terminal
Action Code - Denial
• Issuer Action Code - Online is processed together with the Terminal
Action Code - Online
• Issuer Action Code - Default is processed together with the Terminal
Action Code - Default
• Processing of the action codes shall be performed in the specified
order. The TERMINAL shall make a preliminary decision to reject the
transaction, complete it online, or complete it offline
Steps of an EMV transaction:
7. Rules for Terminal Action Analysis
• Action Code Denial
• No Issuer Action Code - Denial default value with all bits set to 0 is to be
used
• Issuer Action Code - Denial and the Terminal Action Code - Denial specify
the conditions that cause denial of a transaction without attempting to go
online
• For each bit in the TVR that has a value of 1, the terminal shall check the
corresponding bits in the Issuer Action Code - Denial and the Terminal
Action Code – Denial
• If the corresponding bit in either of the action codes is set to 1, it indicates
that the issuer or the acquirer wishes the transaction to be rejected offline
• In this case, the terminal shall issue a GENERATE AC command to request
an AAC from the ICC
Steps of an EMV transaction:
7. Rules for Terminal Action Analysis
• Action Code Online
• No Issuer Action Code - Online present, value with all bits set to 1 is to be used instead
• Issuer Action Code - Online and the Terminal Action Code - Online specify the conditions
that cause a transaction to be completed online
• Not already before rejected - Terminal is capable of online processing - inspect each bit
• in the TVR
• Crosscheck each bit in the TVR that has a value of 1 with corresponding bits of the Issuer
Action Code - Online and the Terminal Action Code – Online
• If the bit in one of the action codes is set to 1, the terminal shall complete transaction
processing online
• Terminal issue a GENERATE AC command requesting an ARQC from the ICC
• Otherwise, the terminal shall issue a GENERATE AC command requesting a TC from the
• ICC
Steps of an EMV transaction:
7. Terminal Action Codes
• Terminal Action Code – Denial ("TAC_DENIAL")
• Terminal Action Code – Online ("TAC_ONLINE")
• Terminal Action Code – Default ("TAC_DEFAULT")
• Configured on the terminal (Acquirers responsibility)
• Denial
Bits, which correspond to the TVR conditions, which should cause an offline decline
• Online
Bits, which correspond to the TVR conditions, which should generate an online
authorization
• Default
Bits, which correspond to the TVR conditions for which the transaction defaults to an
offline decline if online processing is not available.
• (we assume that we can always go online, thus TAC – Default is not used!)
Steps of an EMV transaction:
7. Terminal Action Codes
• Issuer Action Code – Denial ("IAC_DENIAL")
• Issuer Action Code – Online ("IAC_ONLINE")
• Issuer Action Code – Default ("IAC_DEFAULT")
• Configured by the Issuer and read from the chip at runtime
Steps of an EMV transaction:
7. Terminal Action Codes
• 40 bits (5 bytes) that describe the current status off the transaction
TVR
• 40 bits describing reasons to decline the trx offline set by the Issuer
IAC Denial
• 40 bits describing reasons to decline the trx offline set by the Acquirer
TAC Denial
• TAC Denial and IAC Denial describe equally reasons to decline offline
we OR them