This class assists in building a BarcodeData from OnEvent().
BarCodeData GetBarCodeData(
MTU_DEVICE_TYPE deviceType,
vector<unsigned char> dataBytes);BarCodeData
Member
Type/ Format
Description
deviceType
MTU_DEVICE_TYPE
Device Type enum.
dataBytes
vector<unsigned char>
Data from OnEvent()
EVENT_TYPE_BarCodeData
These constructors initialize a BarCodeData object.
These constructors initialize a BarCodeRequest object.
CertificateInfo is used for the connection to a devices requiring client credentials. See the following for details on installing a certificate chain: DYNAFLEX TLS CERTIFICATE INSTALLATION MANUAL
This class assist in parsing ConnectionState event data from OnEvent().
This class assist in parsing DeviceEvent data from OnEvent().
This class assist in parsing device features.
IData is used for the payload of events and passing data to functions. When assigning the member StringValue, the member ByteArray is automatically assigned. Same is true vice versa. In this way either a string or an array can be accessed without need of data conversion.
These constructors initialize a ImageData object.
This is the interface used as the parameter for startTransaction(). For an example, see API Walk Through.
This class assist in parsing NFCAPDU data from OnEvent().
This class assist in parsing NFCAPDU data from OnEvent().
This class assist in parsing NFC data from OnEvent().
This class assist in parsing NFCEvent data from OnEvent().
This class assist in parsing PAN data from OnEvent().
This class assist in parsing PIN data from OnEvent().
This class assist in parsing transaction status event data from OnEvent().
This class assist in parsing UserEvent data from OnEvent().
KSN
vector<unsigned char>
Key Serial Number
BarCodeData()
Initializer.
BlockColor
vector<unsigned char>
Block color. Use RRGGBB format. 0x00,0x00,0x00 = Black
BackgroundColor
vector<unsigned char>
Background color. Use RRGGBB format. 0xFF,0xFF,0xFF = White
ErrorCorrection
unsigned char
Error Correction
0x00 = Low (default)
0x01 = Medium
0x02 = Quartile
0x03 = High
See ISO/IEC 18004:2015
MaskPattern
unsigned char
Mask Pattern
0x00 to 0x07 = Mask Pattern
0xFF = Device Select Optimal Mask Pattern (default)
See ISO/IEC 18004:2015
MinVersion
unsigned char
Minimum Version. Must be less than or equal to Maximum Version.
0x01 to 0x28 = Version 1 to Version 40 (0x01 is default)
See ISO/IEC 18004:2015
MaxVersion
unsigned char
Maximum Version. Must be greater than or equal to Minimum Version.
0x01 to 0x28 = Version 1 to Version 40 (0x28 is default)
See ISO/IEC 18004:2015
BarCodeRequest()
Initializer.
MTUSDKCS_CONNECTING
string
MTUSDKCS_ERROR
string
MTUSDKCS_CONNECTED
string
MTUSDKCS_DISCONNECTING
string
GetStatusString(FeatureStatus value)
string
Returns a status.
FEATURE_PIN_ENTRY
string
FEATURE_PAN_ENTRY
string
FEATURE_SIGNATURE_CAPTURE
string
FEATURE_SHOW_BAR_CODE
string
FEATURE_SCAN_BAR_CODE
string
STATUS_SUCCESS
string
STATUS_HARDWARE_NA
string
CurrenyCode
vector<unsigned char> 2
EMV Tag 5F2A - Currency code of the transaction according to ISO 4217. The byte array is null by default.
Example:
0x0840 = US Dollar 0x0978 = Euro 0x0826 = UK Pound
CurrencyExponent
vector<unsigned char> 1
EMV Tag 5F36 - The decimal point position from the right of the transaction amount. The byte array is null by default.
Example:
0x02 β decimal point at 2 position from the right.
TransactionCategory
vector<unsigned char> 1
EMV Tag 9F53 - The type of contactless transaction being performed. The byte array is null by default.
TransactionType
byte 1
EMV Tag 9C - The type of financial transaction, represented by the first two digits of the ISO 8583:1987 Processing Code.
Usage:
0x00 β purchase. Default.
0x01 β cash advance
0x09 β purchase with cashback
ManualEntryType
unsigned char
User interface sequence.
Usage:
0x00 - Card Number, Expiration Date, Security Code
0x01 - Name on Card, Card Number, Expiration Date, Security Code (Reserved for Future Use)
0x02 β Qwick Code, Last 4 digits of Card Number, Security Code (Reserved for future use)
ManualEntryFormat
unsigned char
Card number valid format.
Usage:
0x00 - PAN min 8, max 21 digits
ManualEntrySound
unsigned char
Beeper feedback.
Usage:
0x00 - On keypress sound disabled
0x01 - On keypress sound enabled
Tip2DisplayMode
byte
Display mode for Tip button 2.
0x00 = % or $
0x01 = Display Custom
0x02 = Display NO TIP
0x03 = Disabled
Tip3DisplayMode
byte
Display mode for Tip button 3.
0x00 = % or $
0x01 = Display Custom
0x02 = Display NO TIP
0x03 = Disabled
Tip4DisplayMode
byte
Display mode for Tip button 4.
0x00 = % or $
0x01 = Display Custom
0x02 = Display NO TIP
0x03 = Disabled
Tip5DisplayMode
byte
Display mode for Tip button 5.
0x00 = % or $
0x01 = Display Custom
0x02 = Display NO TIP
0x03 = Disabled
Tip4Value
string Max 7
Display value for Tip button 4.
β1.00β = $1.00 (Display Mode is $)
β10.0001β = 10.0001% (Display Mode is %)
Tip5Value
string Max 7
Display value for Tip button 5.
β1.00β = $1.00 (Display Mode is $)
β10.0001β = 10.0001% (Display Mode is %)
Tip6Value
string Max 7
Display value for Tip button 6.
β1.00β = $1.00 (Display Mode is $)
β10.0001β = 10.0001% (Display Mode is %)
TaxAmount
string Max 7
Tax amount.
β1.00β = $1.00
EncryptionType
unsigned char
Returns the encryption status. false = data is not encrypted true = data is encrypted
MTUSDKTS_NFC_MIFARE_DESFIRE
String
βmifare_desfireβ
MTUSDKTS_NFC_TAG_REMOVED
String
"tag_removed"
MTUSDKTS_NFC_COMMAND_FAILED
String
"failed"
MTUSDKTS_NFC_IO_FAILED
String
"io_failed"
MTUSDKTS_NFC_AUTHENTICATION_FAILED
String
"authentication_failed"
GetValue(string data)
NFCEve nt
Returns the NFCEvent enumeration.
GetString(NFCEvent value)
string
Returns a string representation of NFCEvent enumeration.
MTUSDKTS_CARD_DETECTED
String
MTUSDKTS_CARD_COLLISION
String
MTUSDKTS_TIMED_OUT
String
MTUSDKTS_HOST_CANCELLED
String
MTUSDKTS_TRANSACTION_CANCELLED
String
MTUSDKTS_TRANSACTION_IN_PROGRESS
String
MTUSDKTS_TRANSACTION_ERROR
String
MTUSDKTS_TRANSACTION_APPROVED
String
MTUSDKTS_TRANSACTION_DECLINED
String
MTUSDKTS_TRANSACTION_COMPLETED
String
MTUSDKTS_TRANSACTION_FAILED
String
MTUSDKTS_TRANSACTION_NOT_ACCEPTED
String
MTUSDKTS_SIGNATURE_CAPTURE_REQUESTED
String
MTUSDKTS_TECHNICAL_FALLBACK
String
MTUSDKTS_VAS_ERROR
String
GetStatusCode(string data)
TransactionStatus
Returns the TransactionStatus enumeration.
GetDetailData(string data)
string
Returns the detail.
GetString(TransactionStatus value, string detailData = "")
string
Returns the detail.
MTUSDKUE_CARD_UNSEATED
string
MTUSDKUE_CARD_SWIPED
string
MTUSDKUE_TOUCH_PRESENTED
string
MTUSDKUE_TOUCH_REMOVED
string
MTUSDKUE_BARCODE_READ
string
MTUSDKUE_NFC_MIFARE_ULTRALIGHT_PRESENTED
string
MTUSDKUE_MIFARE_CLASSIC_1K_PRESENTED
string
MTUSDKUE_MIFARE_CLASSIC_4K_PRESENTED
string
MTUSDKUE_MIFARE_DESFIRE_PRESENTED
string
MTUSDKUE_NFC_MIFARE_ULTRALIGHT_REMOVED
string
MTUSDKUE_MIFARE_CLASSIC_1K_REMOVED
string
MTUSDKUE_MIFARE_CLASSIC_4K_REMOVED
string
MTUSDKUE_MIFARE_DESFIRE_REMOVED
string
BarCodeData();BarCodeData(
vector<unsigned char> data,
bool encrypted,
unsigned char encryptionType = 0,
vector<unsigned char> ksn = vector<unsigned char>());BarCodeData
Member
Type/ Format
Description
Data
vector<unsigned char>
Data payload
Encrypted
bool
0x00 = data is not encrypted 0x01 = data is encrypted
EncryptionType
unsigned char
Encryption type
BarCodeRequest(BarCodeType type,
BarCodeFormat format,
vector<unsigned char> data);BarCodeRequest(
BarCodeType type,
BarCodeFormat format,
vector<unsigned char> data,
vector<unsigned char> blockColor,
vector<unsigned char> backgroundColor,
unsigned char errorCorrection = 0x00,
unsigned char maskPattern = 0xFF,
unsigned char minVersion = 0x01,
unsigned char maxVersion = 0x28);BarCodeRequest
Member
Type/ Format
Description
Type
BarCodeType
Enum to specify the type of barcode
Format
BarCodeFormat
Enum to specify the barcode format
Data
vector<unsigned char>
Data to encode into a barcode
CertificateInfo
Member
Type/ Format
Description
format
string
Certificate data format. βPKCS12β β for .p12 file. βPFXβ β for .pfx file.
Data
vector<unsigned char>
Certificate data
Password
string
Password to access the certificate data.
ConnectionState GetValue(string data); string GetString(ConnectionState value);Static
Member
Return
Description
GetValue(string data)
ConnectionState
Returns the ConnectionState enumeration.
GetString(NFCEvent value)
string
Returns a string representation of ConnectionState enumeration.
MTUSDKCS_DISCONNECTED
string
DeviceEvent GetValue(string valueString);
string GetString(DeviceEvent UserEvent);DeviceFeature GetDeviceFeature(string data);
FeatureStatus GetFeatureStatus(string data);
string GetFeatureString(DeviceFeature value);
string GetStatusString(FeatureStatus value)Static
Member
Return
Description
GetDeviceFeature(string data)
DeviceFeature
Returns device feature.
GetFeatureStatus(string data)
FeatureStatus
Returns feature status.
GetFeatureString(DeviceFature data)
string
Returns the feature.
Static
STATUS_FAILED
string
STATUS_TIMED_OUT
string
STATUS_CANCELLED
string
STATUS_ERROR
string
IData();
IData(string Value);
IData(vector<unsigned char> Value);IData
Member
Type/ Format
Description
StringValue
string
String value
ByteArray
vector<unsigned char>
Byte array
IData()
Initializer
ImageData(
ImageType type,
vector<unsigned char> data);ImageData(
ImageType type,
vector<unsigned char> data,
vector<unsigned char> backgroundColor);IData
Member
Type/ Format
Description
Type
ImageType
Enum for image type. Usage:
BITMAP = BMP file
IData
Data
vector<unsigned char>
Image encoded data.
Images must be BMP format, 160KB or smaller with no compression, maximum 320px by 240px, with color depth 16 color, 256 color, 16-bit color, or 24-bit color. Images smaller than the maximum size are centered on the display. Note images at full screen size must be 16-bit color or lower to meet the size requirement.
For details see DynaFlex Family Programmerβs Manual
BackgroundColor
vector<unsigned char>
Background color in RRGGBB format.
0x00,0x00,0x00 = Black
0xFF,0xFF,0xFF = White
ImageData()
Initializer
ITransaction
Member
Type/ Format
Description
PaymentMethods
int
List of the PaymentMethod enumeration.
Usage:
PAYMENT_METHOD_MSR - For magnetic stripe cards. PAYMENT_METHOD_Contact - For EMV chip cards. PAYMENT_METHOD_Contactless - For NFC contactless cards.
PAYMENT_METHOD_ManualEntry - For user to manually enter transaction data without any card access. When set to ManualEntry, the other payment methods do not apply.
PAYMENT_METHOD_BARCODE - For Barcode.
PAYMENT_METHOD_BARCODE_ENCRYPTED - For
encrypted Barcode. PAYMENT_METHOD_APPLE_VAS - For Apple VAS. PAYMENT_METHOD_NFC - For NFC tag.
ITransaction
QuickChip
bool
In QuickChip mode, the device does not prompt for an amount. Device sends an ARQC request to the host. Device automatically populates the ARPC response data with EMV Tag 8A set to βZ3β. Card holder is prompted to remove the card. Transaction result is later determined by the processor and not by the card.
Usage:
false - Do not enable QuickChip mode.
true - Enable QuickChip mode. Default.
Timeout
unsigned char
Transaction timeout in seconds. Default is 60 seconds.
Usage:
0 to 255 - Depending on the device, 0 means no timeout.
Amount
string Max 13
EMV Tag 9F02 - Authorized amount of the transaction.
Example:
β1.23β β $1.23
β10β β $10.00
CashBack
string Max 13
EMV Tag 9F03 - Secondary amount associated with the transaction.
Example:
β1.23β β $1.23
β10β β $10.00
ITransaction
EMVOnly
bool
Flag that determines whether or not to start a transaction in EMV mode. This takes effect for devices which support both MSR and EMV mode (not limited to eDynamo, tDynamo, and DynaPro Family). This has no effect on non EMV devices.
Usage:
false - Do not start transaction in EMV mode.
true - Only start transaction in EMV mode. Default.
PreventMSRSignatureF orCardWithICC
bool
Flag that forces the device to skip signature capture during an MSR-only transaction if the cardβs service code indicates it is a chip card.
Usage:
false - Allow the prompt for a signature if requested.
true - Do not prompt for signature.
SuppressThankYouMes sage
bool
By default, devices with a display signal the end of a transaction by briefly showing βTHANK YOU,β then βWELCOME.β
Usage:
false - Do not suppress the thank you message.
true - Suppress the thank you message.
DisplayAmountForQuic kChip
bool
Display Amount for Quick Chip Transaction Flow.
false = Do not display Amount when QuickChip mode is true. Default.
true = Display Amount when QuickChip mode is true.
OverrideFinalTransacti onMessage
unsigned char
By default, devices with a display signal the end of a transaction by returning to the idle page and showing βWELCOME.β This parameter directs the device to show a message based on the Message ID from the command displayMessage(). This option completely overrides the deviceβs idle page behavior until the next transaction, power cycle, or other similar state change.
Usage:
0x00 - reserved, do not use.
0x01 - βAMOUNTβ
0x02 - βAMOUNT OK?β
0x03 - βAPPROVEDβ
0x04 - βCALL YOUR BANKβ
0x05 - βCANCEL OR ENTERβ
0x06 - βCARD ERRORβ
0x07 - βDECLINEDβ
0x08 - βENTER AMOUNTβ
0x09 - reserved, do not use.
0x0A - reserved, do not use.
0x0B - βINSERT CARDβ
0x0C β βNOT ACCEPTEDβ
0x0D - reserved, do not use.
0x0E - βPLEASE WAITβ
0x0F - βPROCESSING ERRORβ
0x10 - βREMOVE CARDβ
0x11 - βUSE CHIP READERβ
0x12 - βUSE MAGSTRIPEβ
0x13 - βTRY AGAINβ
0x14 - βWELCOMEβ
0x15 - βPRESENT CARDβ
0x16 - βPROCESSINGβ
0x17 - βCARD READ OK - REMOVE CARDβ
0x18 - βINSERT OR SWIPE CARDβ
0x19 - βPRESENT ONE CARD ONLYβ
0x1A - βAPPROVED PLEASE SIGNβ
0x1B - βAUTHORIZING PLEASE WAITβ
0x1C - βINSERT, SWIPE OR TRY ANOTHER CARDβ
0x1D - βPLEASE INSERT CARDβ
0x1E - Null prompt (empty screen) 0x1F - reserved, do not use.
0x20 - βSEE PHONEβ
0x21 - βPRESENT CARD AGAINβ
0x22 - βINSERT/SWIPE/TRY OTHER CARDβ
0x23 - βTAP or SWIPE CARDβ
0x24 - βTAP or INSERT CARDβ
0x25 - βTAP, INSERT or SWIPE CARDβ
0x26 - βTAP CARDβ
0x27 - βTIMEOUTβ
0x28 - βTRANSACTION TERMINATEDβ
ITransaction
EMVResponseFormat
unsigned char
The format of the EMV response.
Usage:
0x00 β Legacy. Default. 0x01 β RFU
MerchantCategory
vector<unsigned char> 2
EMV Tag 9F15 - The type of business being done by the merchant, represented according to ISO 18245. The byte array is null by default.
MerchantCustomData
vector<unsigned char> 20
EMV Tag 9F7C β Proprietary merchant data that may be requested. The byte array is null by default.
MerchantID
vector<unsigned char> 15
EMV Tag 9F16 - Used to uniquely identify a given merchant. The byte array is null by default.
ITransaction
AppleVASMode
VASMode
enum VASMode : int
{
VASMode_Single = 1,
VASMode_Dual = 2,
VASMode_VASOnly = 3,
};
AppleVASProtocol
VASProtocol
enum VASProtocol : int
{
VASProtocol_URL = 1,
VASProtocol_Full = 2,
};
TipMode
byte
Tip mode.
0x00 = Disable Tip Mode
0x01 = Show Tip GUI immediately using %
0x02 = Show Tip GUI immediately using $
0x11 = Enable Read Channel(s), with +Tip Button using %
0x12 = Enable Read Channel(s), with +Tip Button, using $
Tip1DisplayMode
byte
Display mode for Tip button 1.
0x00 = % or $
0x01 = Display Custom
0x02 = Display NO TIP
0x03 = Disabled
ITransaction
Tip6DisplayMode
byte
Display mode for Tip button 6.
0x00 = % or $
0x01 = Display Custom 0x02 = Display NO TIP 0x03 = Disabled
Tip1Value
string Max 7
Display value for Tip button 1.
β1.00β = $1.00 (Display Mode is $)
β10.0001β = 10.0001% (Display Mode is %)
Tip2Value
string Max 7
Display value for Tip button 2.
β1.00β = $1.00 (Display Mode is $)
β10.0001β = 10.0001% (Display Mode is %)
Tip3Value
string Max 7
Display value for Tip button 3.
β1.00β = $1.00 (Display Mode is $)
β10.0001β = 10.0001% (Display Mode is %)
vector<unsigned char> Response;NFCRAPDUData() : NFCData(vector<unsigned char>()) {}NFCRAPDUData(
vector<unsigned char> response,
vector<unsigned char> data,
bool encrypted,
unsigned char encryptionType,
vector<unsigned char> ksn)
: NFCData(data, encrypted, encryptionType, ksn)
{
Response = response;
}Static
Member
Return
Description
Response
vector<unsigned char>
dataBytes
vector<unsigned char>
Data from the OnEvent()
EVENT_TYPE_NFCData.
NFCData(vector<unsigned char> data)
:Data(data), KSN(vector<unsigned char>()),
Encrypted(false), EncryptionType(0)
{
}NFCData(
vector<unsigned char> data,
bool encrypted,
unsigned char encryptionType,
vector<unsigned char> ksn)
:Data(data), KSN(ksn), Encrypted(encrypted),
EncryptionType(encryptionType)
{
}Static
Member
Return
Description
Data
vector<unsigned char>
Returns the data payload.
KSN
vector<unsigned char>
Returns the Key Serial Number.
Encrypted
bool
Returns the encryption type.
NFCData GetNFCData(
MTU_DEVICE_TYPE deviceType,
vector<unsigned char> dataBytes);Static
Member
Return
Description
deviceType
MTU_DEVICE_TYPE
Device type
dataBytes
vector<unsigned char>
Data from the OnEvent()
EVENT_TYPE_NFCData.
NFCEvent GetValue(string valueString);
string GetString(NFCEvent nfcEvent);Static
Member
Value
Description
MTUSDKTS_NFC_MIFARE_ULTRALIGHT
String
"nfc_mifare_ultralight"
MTUSDKTS_NFC_MIFARE_CLASSIC
String
"mifare_classic_1k"
MTUSDKTS_NFC_MIFARE_CLASSIC_4K
String
"mifare_classic_4k"
PANData GetPANData(
MTU_DEVICE_TYPE deviceType,
vector<unsigned char> dataBytes);Static
Member
Return
Description
deviceType
MTU_DEVICE_TYPE
Device type
dataBytes
vector<unsigned char>
Data from the OnEvent()
EVENT_TYPE_PANData.
PINData GetPINData(
MTU_DEVICE_TYPE deviceType,
vector<unsigned char> dataBytes);Static
Member
Return
Description
deviceType
MTU_DEVICE_TYPE
Device type
dataBytes
vector<unsigned char>
Data from the OnEvent()
EVENT_TYPE_PINData.
TransactionStatus GetStatusCode(string data);
string GetDetailData(string data);
string GetString(TransactionStatus value, string detailData = "");Static
Member
Value
Description
MTUSDKTS_CARD_SWIPED
String
MTUSDKTS_CARD_INSERTED
String
MTUSDKTS_CARD_REMOVED
String
Static
MTUSDKTS_QUICK_CHIP_DEFERRED
String
MTUSDKTS_DATA_ENTERED
String
MTUSDKTS_TRY_ANOTHER_INTERFACE
String
MTUSDKTS_BARCODE_READ
String
UserEvent GetValue(string valueString);
string GetString(UserEvent UserEvent);Static
Member
Return
Description
MTUSDKUE_CONTACTLESS_CARD_PRESENTED
string
MTUSDKUE_CONTACTLESS_CARD_REMOVED
string
MTUSDKUE_CARD_SEATED
string
Static
GetValue(string data)
UserEvent
Returns the UserEvent enumeration.
GetString(NFCEvent value)
string
Returns a string representation of UserEvent enumeration.
Supported transaction types can found in the commands programmers manual specific to the device.