For the complete documentation index, see llms.txt. This page is also available as Markdown.

Data Classes

BarCodeBuilder

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

BarCodeData

These constructors initialize a BarCodeData object.

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

KSN

vector<unsigned char>

Key Serial Number

BarCodeData()

Initializer.

BarCodeRequest

These constructors initialize a BarCodeRequest object.

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

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.

CertificateInfo

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

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.

ConnectionStateBuilder

This class assist in parsing ConnectionState event data from OnEvent().

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

MTUSDKCS_CONNECTING

string

MTUSDKCS_ERROR

string

MTUSDKCS_CONNECTED

string

MTUSDKCS_DISCONNECTING

string

DeviceEventBuilder

This class assist in parsing DeviceEvent data from OnEvent().

FeatureStatusBuilder

This class assist in parsing device features.

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.

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

Static

STATUS_FAILED

string

STATUS_TIMED_OUT

string

STATUS_CANCELLED

string

STATUS_ERROR

string

STATUS_HARDWARE_NA

string

IData

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.

IData

Member

Type/ Format

Description

StringValue

string

String value

ByteArray

vector<unsigned char>

Byte array

IData()

Initializer

ImageData

These constructors initialize a ImageData object.

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

This is the interface used as the parameter for startTransaction(). For an example, see API Walk Through.

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

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.

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.

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

  • 0x20 – refund

Supported transaction types can found in the commands programmers manual specific to the device.

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

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

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

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 %)

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

NFCAPDUData

This class assist in parsing NFCAPDU data from OnEvent().

Static

Member

Return

Description

Response

vector<unsigned char>

dataBytes

vector<unsigned char>

Data from the OnEvent()

EVENT_TYPE_NFCData.

NFCData

This class assist in parsing NFCAPDU data from OnEvent().

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.

EncryptionType

unsigned char

Returns the encryption status. false = data is not encrypted true = data is encrypted

NFCDataBuilder

This class assist in parsing NFC data from OnEvent().

Static

Member

Return

Description

deviceType

MTU_DEVICE_TYPE

Device type

dataBytes

vector<unsigned char>

Data from the OnEvent()

EVENT_TYPE_NFCData.

NFCEventBuilder

This class assist in parsing NFCEvent data from OnEvent().

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"

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.

PANDataBuilder

This class assist in parsing PAN data from OnEvent().

Static

Member

Return

Description

deviceType

MTU_DEVICE_TYPE

Device type

dataBytes

vector<unsigned char>

Data from the OnEvent()

EVENT_TYPE_PANData.

PINDataBuilder

This class assist in parsing PIN data from OnEvent().

Static

Member

Return

Description

deviceType

MTU_DEVICE_TYPE

Device type

dataBytes

vector<unsigned char>

Data from the OnEvent()

EVENT_TYPE_PINData.

TransactionStatusBuilder

This class assist in parsing transaction status event data from OnEvent().

Static

Member

Value

Description

MTUSDKTS_CARD_SWIPED

String

MTUSDKTS_CARD_INSERTED

String

MTUSDKTS_CARD_REMOVED

String

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

Static

MTUSDKTS_QUICK_CHIP_DEFERRED

String

MTUSDKTS_DATA_ENTERED

String

MTUSDKTS_TRY_ANOTHER_INTERFACE

String

MTUSDKTS_BARCODE_READ

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.

UserEventBuilder

This class assist in parsing UserEvent data from OnEvent().

Static

Member

Return

Description

MTUSDKUE_CONTACTLESS_CARD_PRESENTED

string

MTUSDKUE_CONTACTLESS_CARD_REMOVED

string

MTUSDKUE_CARD_SEATED

string

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

Static

GetValue(string data)

UserEvent

Returns the UserEvent enumeration.

GetString(NFCEvent value)

string

Returns a string representation of UserEvent enumeration.

Last updated