3 - MTSCRA Library Functions
Dynamag, DynaMAX, and eDynamo| Secure Card Reader Authenticator | Programmer’s Reference (WCF)
Page 19
transactionType
Valid values:
0x00 = Purchase (listed as “Payment” on ICS)
0x01 = Cash Advance (not supported for this reader)
0x02 or 0x09 = Cash back (0x09 not supported, contactless)
0x04 = Goods (Purchase)
0x08 = Services (Purchase)
0x10 = International Goods (Purchase)
0x20 = Refund (we need to support this, returns PAN only, see EMV website for
guidance)
0x40 = International Cash Advance or Cash Back
0x80 = Domestic Cash Advance or Cash Back
cashBack
Cash back Amount (EMV Tag 9F03, format n12, 6 bytes).
For example: [0,0,0,0,0x10,0], means 10.00 dollars.
currencyCode
Transaction Currency Code (EMV Tag 5F2A, format n4, 2 bytes)
Sample Valid values:
[0x08,0x40] – US Dollar
[0x09,0x78] – Euro
mode
This single byte field indicates the level of Transaction Status notifications the
host desires to receive during the course of this transaction.
0x00 = Termination Status only (normal termination, card error, timeout, host
cancel)
0x01 = Major Status changes (terminations plus card insertions and waiting on
user)
0x02 = All Status changes (documents the entire transaction flow)
Return Value:
This function will always returns null. To get the result code of this command, use getResultCode()
function.
3.12
cancelTransaction (eDynamo Only)
This function cancels the current transaction.
byte[] cancelTransaction();
Return Value:
This function will always returns null. To get the result code of this command, use getResultCode()
function.
3.13
setUserSelectionResult (eDynamo Only)
This function sets the user selection result. It should be called after receiving the OnUserSelect event
which is triggered after the user makes a choice.
byte[] setUserSelectionResult(
byte status,
byte selection
);