(instancetype) NewBarCodeData: (NSData*) data
Ksn: (NSData*) ksn
encrypted: (BOOL) encrypted
encryption: (Byte) encryption;BarCodeData
Member
Type/ Format
Description
Data
NSData*
Data payload
Encrypted
Bool
0x00 = data is not encrypted 0x01 = data is encrypted
EncryptionType
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
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.
Example of using IData.
Contains status and data of operations of return type IResult.
This is the interface used as the parameter for startTransaction(). For an example, see the sample code in IDevice Walk Through.
These constructors initialize an NFCData object. Use NewNFCData with the data byte array from the NFCData event to return an NFCData.
These constructors initialize an NFCData and NFCRAPDUData object.
This class assist in parsing NFCEvent data.
These constructors initialize an NFCRAPDUData object. Use NFCDataBuilder.getNFC with data byte array from the NFCRAPDUResponse event to return an NFCRAPDUData.
Return Value:
Returns an instance of NFCRAPDUData.
These constructors initialize a PersonalInfoEntry object.
Call startPersonalInfoEntry().
At OnEvent():TouchscreenPersonalInfo, build the object.
Byte
Encryption type
KSN
NSData*
Key Serial Number
NewBarCodeData()
Initializes a BarCodeData.
CertificateInfo
Member
Type/ Format
Description
format
NSString*
Certificate data format. βPKCS12β β for .p12 file. βPFXβ β for .pfx file.
data
NSData*
Certificate data.
password
NSString*
Password to access the certificate data.
IData
Member
Type/ Format
Description
StringValue
NSString*
String value
ByteArray
NSData*
Byte array
dataWithString()
NSString*
Initializes an IData from an NSString.
// String usage
var data1: IData = IData.dataWithHex("3030")
// Array usage
var byteArray[2]: Byte = {0x30,0x30}
var dataBytes: NSData = NSData.dataWithBytes(byteArray, length:2) var data2: IData = Idata.dataWithData(dataBytes)@property (nonatomic) MTU_StatusCode status;
@property (nonatomic, strong) IData* data;
(IResult*) status:(MTU_StatusCode) Status data: (IData*) Data;ITransaction
Member
Type/ Format
Description
Timeout
Byte
Transaction timeout in seconds. Default is 60 seconds.
Usage:
0 to 255 - Depending on the device, 0 means no timeout.
PaymentMethods
PaymentMethod
List of the PaymentMethod enumeration.
Usage:
MSR - For magnetic stripe cards.
Contact - For EMV chip cards.
Contactless - For NFC contactless cards. ManualEntry - For user to manually enter transaction data without any card access. When set to ManualEntry, the other payment methods do not apply.
BarCode - Reserved for future use. AppleVAS - Reserved for future use. BarCodeEncryped - Reserved for future use. NFC - For NFC MiFare.
GoogleVAS - Reserved for future use.
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.
ITransaction
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.
Usage:
false - Do not display Amount when QuickChip mode is true. Default.
true - Display Amount when QuickChip mode is true.
OverrideFinalTransacti onMessage
Byte
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.
Example:
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β
EMVResponseFormat
Byte
The format of the EMV response.
Usage:
0x00 β Legacy. Default. 0x01 β RFU
ITransaction
Amount
NSString* Max 13
EMV Tag 9F02 - Authorized amount of the transaction.
Example:
β1.23β β $1.23
β10β β $10.00
CashBack
NSString* Max 13
EMV Tag 9F03 - Secondary amount associated with the transaction.
Example:
β1.23β β $1.23
β10β β $10.00
CurrenyCode
NSData* 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
NSData* 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
ManualEntryFormat
Byte
Card number valid format.
Usage:
0x00 - PAN min 8, max 21 digits
ManualEntrySound
Byte
Beeper feedback.
Usage:
0x00 - On keypress sound disabled
0x01 - On keypress sound enabled
AppleVASMode
VASMode
An enumeration for the Apple VAS Mode.
AppleVASProtocol
VASProtocol
An enumeration for the Apple VAS Protocol.
ITransaction
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
Tip4Value
NSString*
Display value for Tip button 4.
β1.00β = $1.00 (Display Mode is $)
β10.0001β = 10.0001% (Display Mode is %)
Tip5Value
NSString*
Display value for Tip button 5.
β1.00β = $1.00 (Display Mode is $)
β10.0001β = 10.0001% (Display Mode is %)
Tip6Value
NSString*
Display value for Tip button 6.
β1.00β = $1.00 (Display Mode is $)
β10.0001β = 10.0001% (Display Mode is %)
TaxAmount
NSString*
Tax amount.
β1.00β = $1.00
(instancetype) NewNFCData : (NSData*) data
encrypted : (BOOL) encrypted
encryptionType : (Byte) encryptionType
KSN : (nullable NSData*) ksn;BarCodeData
Member
Type/ Format
Description
Data
NSData*
Data payload
Encrypted
Bool
0x00 = data is not encrypted 0x01 = data is encrypted
EncryptionType
Byte
Encryption type
(nullable NFCData*) GetNFC : (MTU_DeviceType)DeviceType
Data : (NSData*) Data;
(nullable NFCRAPDUData*) GetNFC : (MTU_DeviceType)DeviceType
RAPDUData : (NSData*) Data;BarCodeData
Member
Type/ Format
Description
DeviceType
MTU_Dev iceType
Enumerated device type.
Data
NSData*
Data payload
(MTU_NFCEvent) GetEventValue :(NSString*) data;
(NSString*) GetEventString : (MTU_NFCEvent) event;Static
Member
Return
Description
GetEventValue()
MTU_
NFCEvent
Returns the NFCEvent enumeration.
GetEventString()
NSString
Returns a string representation of NFCEvent enumeration.
NewNFCRAPDUData : (NSData*) data
Response :(NSData*) response
encrypted : (BOOL) encrypted
encryptionType : (Byte) encryptionType
KSN : (nullable NSData*) ksn;
NFCRAPDUData NFCDataBuilder.GetNFC : (MTU_DeviceType)DeviceType
RAPDUData : (NSData*) Data;Parameter
Description
response
Response data.
data
The data payload.
encrypted
Encryption status.
false = data is not encrypted true = data is encrypted
encryptionType
The encryption type.
ksn
The Key Serial Number.
(PersonalInfoEntry*) GetPersonalInfoEntry : (MTU_DeviceType)DeviceType
data : (NSData*) data;BarCodeData
Member
Type/ Format
Description
Data
NSData*
Data payload
DataType
MTU_CaptureType
Returns the capture type.
Encrypted
Bool
Returns the encryption status. false = data is not encrypted true = data is encrypted
inithWithFormat()
Initializes CertificateInfo.
dataWithData()
NSData*
Initializes an IData from an NSData.
dataWithHex()
NSString*
Initializes an IData from an NSString formatted as hexadecimal.
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.
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.
TransactionCategory
NSData* 1
EMV Tag 9F53 - The type of contactless transaction being performed. The byte array is null by default.
MerchantCategory
NSData* 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.
MerchantID
NSData* 15
EMV Tag 9F16 - Used to uniquely identify a given merchant. The byte array is null by default.
MerchantCustomData
NSData* 20
EMV Tag 9F7C β Proprietary merchant data that may be requested. The byte array is null by default.
ManualEntryType
Byte
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)
FunctionalButtonRight Option
uint16_t
String ID to use for the Right functional button.
When user presses this button, device sends a notification to the host to indicate the present card functional button Right is pressed. Device then waits for the next command from the host. While waiting, the screen shows βPLEASE WAITβ.
null = Disable.
0x0000 to 0x00FF = String ID
ECP2FrameData
NSData* 3-18
Apple ECP2.0 frame from Byte 2 to Byte N. See Apple ECP2.0 specification.
Β· For example, if ECP2.0 VASUP-A frame is 6A02C3020003FFFF
then Byte 2-N is 0xC3020003FFFF.
By default, ECP2.0 frame (Byte 2 -N) is 0xC3020003FFFF
CustomNFCTransactio nMode
MTU_NFCTransacti onMode
NFC transaction modes.
CustomNFCDataMode
MTU_NFCDataMod e
Custom NFC data mode.
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
Tip6DisplayMode
Byte
Display mode for Tip button 6.
0x00 = % or $
0x01 = Display Custom 0x02 = Display NO TIP 0x03 = Disabled
Tip1Value
NSString*
Display value for Tip button 1.
β1.00β = $1.00 (Display Mode is $)
β10.0001β = 10.0001% (Display Mode is %)
Tip2Value
NSString*
Display value for Tip button 2.
β1.00β = $1.00 (Display Mode is $)
β10.0001β = 10.0001% (Display Mode is %)
Tip3Value
NSString*
Display value for Tip button 3.
β1.00β = $1.00 (Display Mode is $)
β10.0001β = 10.0001% (Display Mode is %)
KSN
NSData*
Key Serial Number
deviceType
Device type.
EncryptionType
Byte
Returns the encryption type.
KSN
NSData*
Returns the Key Serial Number.