cardGetLastReceipt
Use
Device type | Note | |
|---|---|---|
eKasa | no | Command for payment services only |
eKasa + POS | yes | |
POS | yes |
The command returns information about the last payment operation (the last successful transaction). The command leaves a record in device's DB, the receipt is printed when commands "print" and "get" with the attribute "paragon" are invoked.
Format:
For operation type PAYMENT
Key | Description |
|---|---|
ID | Payment terminal ID |
A | Authorisation code |
b | Card brand (VISA, MCI .. etc) |
t | Transaction approval time |
S | Variable symbol |
B | Card number |
TextZ | Receipt for the customer (multiline, every live starts with TextZ) |
TextP | Receipt for the merchant (multiline, every line starts with TextP) |
For operation type REFUND
Key | Description |
|---|---|
OP | Operation |
TR | Transaction result (0 - OK, 1 - Operation rejected, 9 - Rejection local error) |
TM | Message for the user in device language |
ST | Status code |
RC | Payment protocol return code (according to the table) |
S | Variable symbol |
ID | Payment terminal ID |
A | Authorisation code |
b | Card brand (VISA, MCI .. etc) |
t | Transaction approval time |
C | Amount |
B | Card number |
CT | Card type (contact, contactless, magnetic, manualPan) |
MID | Merchant ID |
AID | Card type application identifier |
TRNTYPE | Transaction type |
SIG | Required signature |
OFF | Offline transaction attribute |
TRNERR | false - transaction OK; true - the transaction ended in error |
RID | Receipt identifier (In the format: “yyyyMMddHHmm / RCL / RN”, 24 characters in total, RLC and RN aligned to 6 characters and initial zeros added) |
RCL | Local receipt counter |
RCG | Global receipt counter |
RN | Report number |
TRNSEQ | Transaction sequence number |
S | Variable symbol |
TextZ | Receipt for the customer (multiline, every line starts with TextZ) |
TextP | Receipt for the merchant (multiline, every line starts with TextP) |