Payment
Payment request message (from ECR)
Pos | Length | Type | Content |
---|---|---|---|
1 | 8 | N | Terminal ID (00000000-99999999) |
9 | 1 | A | Reserved – fixed to ‘0’ (0x30) |
10 | 1 | A | Message code: ‘P’ (0x50) |
11 | 8 | N | Cash register ID |
19 | 1 | N | Presence of message with additional data for the GT
|
20 | 2 | N | Reserved – fixed to ‘0’ (0x30) |
22 | 1 | N | Start transaction when card already present:
|
23 | 1 | N | Payment type:
|
24 | 8 | N | Transaction amount, right aligned, filled with ‘0’ (0x30) on the left. Amount is always considered to be expressed in cents (e.g. 650 = 6,50) |
32 | 128 | AN | Text to be print (Code contract) at the end of the payment receipt. The field is always 128 chars long, it’s right aligned, filled with ‘ ‘ (0x20) on the left. The terminal shall only print valid chars, skipping the blanks. |
160 | 8 | N | Reserved – fixed to ‘0’ (0x30) |
Payment response message without currency exchange data (from Terminal)
Pos | Length | Type | Content |
---|---|---|---|
1 | 8 | N | Terminal ID (00000000-99999999) |
9 | 1 | A | Reserved – fixed to ‘0’ (0x30) |
10 | 1 | A | Message code: ‘E’ (0x45) |
11 | 2 | N | Transaction result:
|
If transaction result is positive (00)
Pos | Length | Type | Content |
---|---|---|---|
13 | 19 | N | Card PAN, right aligned, filled with ‘0’ (0x30) on the left. The PAN is |
32 | 3 | A | Transaction type:
|
35 | 6 | A | Authorization code received from host |
41 | 7 | A | Transaction date and time received from host in DDDHHMM. The day is expressed as number of days since 01/01 of current year. For example, July 29, 15:20 is sent as 2111520. |
If transaction result is negative (01)
Pos | Length | Type | Content |
---|---|---|---|
13 | 24 | A | Result description. This field shall report, using only ASCII characters, the reason of the denial. The field is left aligned, filled with blank on the right. |
37 | 11 | N | Reserved – fixed to ‘0’ (0x30) |
Common to any response
Pos | Length | Type | Content |
---|---|---|---|
48 | 1 | N | Card type:
|
49 | 11 | N | Acquirer ID. The field is left aligned, filled with blanks on the right. |
60 | 6 | N | STAN. Transaction sequence number. |
66 | 6 | N | ID online. Online operation progressive number. |
Payment response message with currency exchange data (from Terminal)
Pos | Length | Type | Content |
---|---|---|---|
1 | 8 | N | Terminal ID (00000000-99999999) |
9 | 1 | A | Reserved – fixed to ‘0’ (0x30) |
10 | 1 | A | Message code: ‘V’ (0x56) |
11 | 2 | N | Transaction result:
|
If transaction result is positive (00)
Pos | Length | Type | Content |
---|---|---|---|
13 | 19 | N | Card PAN, right aligned, filled with ‘0’ (0x30) on the left. The PAN is |
32 | 3 | A | Transaction type:
|
35 | 6 | A | Authorization code received from host |
41 | 7 | A | Transaction date and time received from host in DDDHHMM. The day is expressed as number of days since 01/01 of current year. For example, July 29, 15:20 is sent as 2111520. |
If transaction result is negative (01)
Pos | Length | Type | Content |
---|---|---|---|
13 | 24 | A | Result description. This field shall report, using only ASCII characters, the reason of the denial. The field is left aligned, filled with blank on the right. |
37 | 11 | N | Reserved – fixed to ‘0’ (0x30) |
Common to any response
Pos | Length | Type | Content |
---|---|---|---|
48 | 1 | N | Card type:
|
49 | 11 | N | Acquirer ID. The field is left aligned, filled with blanks on the right. |
60 | 6 | N | STAN. Transaction sequence number. |
66 | 6 | N | ID online. Online operation progressive number. |
72 | 3 | N | Action code related to current payment operation. |
75 | 8 | N | Transaction amount original, right aligned, with ‘0’ filling on the left. Amount is always considered to be expressed in cents (e.g. 650 = 6,50) |
83 | 1 | N | Currency exchange transaction flag. The value is set to ‘1’ only when the transaction has been performed with a currency different from terminal currency. Important: if this value is ‘0’, following fields are not meaningful. |
84 | 8 | N | Exchange rate, right aligned with 4 decimal digits. – Received by the host "DCC". |
92 | 3 | A | Alphanumeric currency code of transaction currency, as received by the host "DCC". |
95 | 12 | N | Transaction amount in the transaction currency, right aligned with ‘0’ (0x30) filler on the left - Received by the host “DCC”. |
107 | 1 | N | Precision (number of decimals) of transaction currency. |
108 | 10 | N | Reserved – fixed to ‘0’ (0x30) |