![Magtek ADYNAMO Programmer'S Reference Manual Download Page 25](http://html1.mh-extra.com/html/magtek/adynamo/adynamo_programmers-reference-manual_3704666025.webp)
3 –MTSCRA Class Methods
aDynamo, uDynamo, Dynamag, DynaMAX, eDynamo, BulleT| Secure Card Reader Authenticator | Programmer’s Reference (Android)
Page 25 of 42 (
D99875728-31
)
Return Value:
The version information of the SDK.
3.53
sendCommandToDevice
Send command to device.
public int sendCommandToDevice(string command)
Parameters:
Parameter
Description
command
Command string to send to the device.
Return Value:
0 = Success
9 = Error
15 = Busy
3.54
startTransaction (EMV Device Only)
This function starts an EMV L2 transaction for smart card.
public int startTransaction(byte timeLimit, byte cardType, byte
option, byte[] amount, byte transactionType, byte[] cashBack, byte[]
currentCode, byte reportingOption)
Parameters:
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)