TLVis a new format supported from Agnos Framework version 3.1.x
RAWis the Agnos Framework's legacy format (Deprecated)
TLV Format
TLV PROCESSING is a TLV file starting by a headerand followed by a set of TLV.
TLV PROCESSING | |||
---|---|---|---|
Header (21 bytes) | |||
Version | unsigned char | Value between 0xAA and 0xAF | Current version: 0xAA |
SHA-1 | unsigned char[20] | SHA-1 calculation on the following data | n/a |
Body (variable) | |||
Tag | Length | Value | Example |
variable | AID delimiter. FF33 length is equal to the length of the following TLV | n/a | |
6 | Acquirer identifier. AcquirerIdentifier[0] must be set to |
a value flagging that it corresponds to a CL AID. 0xC0 or 0xF0 is generally used | n/a | ||
0..16 | AID | n/a | |
1 | Application selection indicator | 0x00 or 0x01 | |
2 | Application version (contact only) | ||
1 | Skip TAC/IAC default supported (contact only) | 0x00 or 0x01 | |
1 | Random transaction selection supported (contact only) | 0x00 or 0x01 | |
1 | Velocity checking supported (contact only) | 0x00 or 0x01 | |
1 | Floor limit checking supported (contact only) | 0x00 or 0x01 | |
1 | TAC supported (contact only) | 0x00 or 0x01 | |
5 | TAC denial (contact only) | Any value | |
5 | TAC online (contact only) | Any value | |
5 | TAC default (contact only) | Any value | |
4 | Floor limit (contact only) | ||
1 | Target percentage (contact only) | ||
3 | Threshold value (contact only) | ||
1 | Maximum target percentage (contact only) | ||
1 | Default DDOL supported (contact only) | 0x00 or 0x01 | |
0..252 | DDOL (contact only) | Any value | |
1 | Default TDOL supported (contact only) | 0x00 or 0x01 | |
0..252 | TDOL (contact only) | Any value | |
2 | Transaction currency code (contact only) | ||
1 | Transaction currency exponent (contact only) |
RAW Format (Deprecated)
RAW PROCESSING is a (11 + NumberOfAID x 571) byte long binary file followed by a 20 byte long SHA-1 calculation for integrity purposes.
RAW PROCESSING | ||
---|---|---|
Header (11 bytes) | ||
Field | Format | Description |
NumberOfAID | unsigned char | Number of AID in the file |
X | unsigned char | Not supported |
Y | unsigned char | Not supported |
XAmount | unsigned char[3] | Not supported |
YAmount | unsigned char[3] | Not supported |
XPerAID | unsigned char | Not supported |
YPerAID | unsigned char | Not supported |
Body (NumberOfAID x 571 bytes) | ||
Field | Format | Description |
AcquirerIdentifier | unsigned char[6] | See TLV Format |
AID | unsigned char[16] | See TLV Format |
AIDLen | unsigned char | AID's length |
ApplicationSelectionIndicator | unsigned char | See TLV Format |
ApplicationVersionNumber | unsigned char[2] | See TLV Format |
XAmount | unsigned char[3] | Not supported |
YAmount | unsigned char[3] | Not supported |
SkipTACIACDefault | unsigned char | See TLV Format |
TAC | unsigned char | See TLV Format |
FloorLimitChecking | unsigned char | See TLV Format |
RandomTransactionSelection | unsigned char | See TLV Format |
VelocityChecking | unsigned char | See TLV Format |
TACDenial | unsigned char[5] | See TLV Format |
TACOnline | unsigned char[5] | See TLV Format |
TACDefault | unsigned char[5] | See TLV Format |
TerminalFloorLimit | unsigned char[3] | See TLV Format |
TargetPercentage | unsigned char | See TLV Format |
ThresholdValue | unsigned char[3] | See TLV Format |
MaxTargetPercentage | unsigned char | See TLV Format |
DefaultTDOL | unsigned char | See TLV Format |
TDOLValue | unsigned char[252] | See TLV Format |
TDOLLength | unsigned char | See TLV Format |
DefaultDDOL | unsigned char | See TLV Format |
DDOLValue | unsigned char[252] | See TLV Format |
DDOLLength | unsigned char | See TLV Format |
TransactionCurrencyCode | unsigned char[2] | See TLV Format |
TransactionCurrencyExponent | unsigned char | See TLV Format |
Trailer (20 bytes) | ||
Field | Format | Description |
SHA-1 | unsigned char[20] | Performed on 11 + (NumberOfAID x 571) previous bytes |