Amadis

PROCESSING

  • TLV is a new format supported from Agnos Framework version 3.1.x

  • RAW is the Agnos Framework's legacy format (Deprecated)

TLV Format

TLV PROCESSING is a TLV file starting by a header and followed by a set of TLV.

TLV PROCESSING

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

FF33

variable

AID delimiter. FF33 length is equal to the length of the following TLV

n/a

9F01

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

4F

0..16

AID

n/a

DF7E

1

Application selection indicator

0x00 or 0x01

9F09

2

Application version (contact only)

 

DF11

1

Skip TAC/IAC default supported (contact only)

0x00 or 0x01

DF12

1

Random transaction selection supported (contact only)

0x00 or 0x01

DF13

1

Velocity checking supported (contact only)

0x00 or 0x01

DF14

1

Floor limit checking supported (contact only)

0x00 or 0x01

DF15

1

TAC supported (contact only)

0x00 or 0x01

DF21

5

TAC denial (contact only)

Any value

DF22

5

TAC online (contact only)

Any value

DF20

5

TAC default (contact only)

Any value

9F1B

4

Floor limit (contact only)

 

DF70

1

Target percentage (contact only)

 

DF6E

3

Threshold value (contact only)

 

DF6F

1

Maximum target percentage (contact only)

 

DF01

1

Default DDOL supported (contact only)

0x00 or 0x01

DF71

0..252

DDOL (contact only)

Any value

DF02

1

Default TDOL supported (contact only)

0x00 or 0x01

DF72

0..252

TDOL (contact only)

Any value

5F2A

2

Transaction currency code (contact only)

 

5F36

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

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