3 - MTSCRA Library Functions
Dynamag, DynaMAX, and eDynamo| Secure Card Reader Authenticator | Programmer’s Reference (WCF)
Page 18
A string including card data.
3.10
getResultCode
Get last EMV command result code.
int getResultCode();
Return Value:
Zero for success, otherwise for failed.
3.11
startTransaction (eDynamo Only)
This function starts an EMV L2 transaction for smart card.
byte[] startTransaction(
byte timeLimit,
byte cardType,
byte option,
byte[] amount,
byte transactionType,
byte[] cashBack,
byte[] currencyCode,
byte mode
);
Parameter
Description
timeLimit
Specifies the maximum time, in seconds, allowed to complete the total
transaction. This includes time for the user to insert the card, choose a language,
choose an application, and online processing. If this time is exceeded, the
transaction will be aborted and an appropriate Transaction Status will be
available. Value 0 is not allowed.
cardType
Card Type to Read:
0x01 = Magnetic Stripe (as alternative to EMV L2, card swipe causes abort of
EMV L2)
0x02 = Contact smart card
0x04 = Contactless smart card (not supported at this time)
Note: Multiple Card Types can be selected, for example: Set this byte to 3 to
read both Magnetic Stripe and Contact Smart Card.
option
0x00 = Normal
0x01 = Bypass PIN (not used on this reader)
0x02 = Force Online (not used on this reader)
0x04 = Acquirer not available (Note: prevents long timeout on waiting for host
approval) (causes “decline” to be generated internally if ARQC is generated)
amount
Amount Authorized (EMV Tag 9F02, format n12, 6 bytes)
For example: [0,0,0,0,0x10,0], means 10.00 dollars.