All pages
Powered by GitBook
1 of 1

Loading...

Classes

These classes are equipped with helper classes named Builders. Builders can parse the raw data byte array of an OnEvent() into a format required by a builder’s class.

BarCodeData

These constructors initialize a BarCodeData object. Use BarCodeDataBuilder.GetBarCodeData with data from the BarCodeData event to return a BarcodeData.

BarCodeData BarCodeDataBuilder.GetBarCodeData( 
    DeviceType deviceType,
    byte[] dataBytes
    );
    
new BarCodeData(
byte[] Data, 
boolean Encrypted,
byte EncryptionType, byte[] 
KSN
);

Member

Description

Data

Returns the data payload.

Encrypted

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

EncryptionType

Returns the encryption type.

Return Value:

Returns an instance of BarCodeData.

CertificateInfo is used for the connection to a device requiring client credentials. See the following for details on installing a certificate chain: DynaFlex II PED Using Wireless LAN Guide.

Example of using CertificateInfo.

This class returns the connection state of the device when supplied the data object of the OnEvent() ConnectionState event.

Return Value:

Returns an instance of ConnectionStateBuilder.

DirectoryEntry is similar to an InputRequest for Application during a transaction. Other fields of information are included besides Application Label. During a transaction, the device selects the PPSE. The directory entries are the PPSE response starting from the BF0C tag. The number of directory entries correspond to the number of applications on the card.

This takes the data from the EnhancedInputRequest event and returns an enhanced application selection list. This class extends InputRequest.

Code paths to receiving DirectoryEntry:

These constructors initialize a DirectoryEntry object.

Return Value:

Returns an instance of DirectoryEntry.

This supplies a directory entry list for application selection after a card has been presented to the device during a transaction. To be implemented, Application Selection Behavior property 1.2.1.1.1.2 must be set to 0x03 – Enhanced Prompt Cardholder.

The data byte array from the EnhancedInputRequest event is parsed and returned as an enhanced application selection list (directory entry). This list is the PPSE response starting from tag BF0C. EnhancedInputRequest class extends InputRequest.

This is used for displaying messages prompted by the card during a transaction. The data byte array from the InputRequest event is parsed and returned as an InputRequest.

Return:

Returns and instance of InputRequest.

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.

Use the BaseData() function to assign an instance of IData.

Example of using IData.

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 NFCDataBuilder.GetNFCData with data byte array from the NFCData event to return an NFCData.

Return Value:

Returns an instance of NFCData.

These constructors initialize an NFCRAPDUData object. Use NFCDataBuilder.GetNFCRAPDUData with data byte array from the NFCRAPDUResponse event to return an NFCRAPDUData.

Return Value:

Returns an instance of NFCRAPDUData.

This class assist in parsing NFCEvent data.

These constructors initialize a PersonalInfoEntry object.

  • Call startPersonalInfoEntry()

  • At OnEvent():TouchscreenPersonalInfoEntry build the object.

Return Value:

Returns an instance of PersonalInfoEntry.

This class assist in parsing PersonalInfoEntry data.

  • Call startPersonalInfoEntry()

  • At OnEvent():TouchscreenPersonalInfoEntry build the object.

Return Value:

Returns an instance of PersonalInfoEntry.

KSN

Returns the Key Serial Number.

CertificateInfo

Member

Type/ Format

Description

format getFormat()

string

Certificate data format. β€œPKCS12” – for .p12 file. β€œPFX” – for .pfx file.

data getData()

byte[]

Certificate data

CertificateInfo

password getPassword()

string

Password to access the certificate data.

string ConnectionStateBuilder.GetString(ConnectionState value); 
ConnectionState ConnectionStateBuilder.GetValue(string data);

Member

Description

CONNECTED

Returns string of connected.

CONNECTING

Returns string of connecting.

DISCONNECTED

Returns string of disconnected.

DISCONNECTING

Returns string of disconnecting.

ERROR

Returns string of error.

new DirectoryEntry(); 
new DirectoryEntry(
    String Aid, 
    String Label, 
    byte Priority,
    byte[] ProprietaryData, 
    byte KernelIdentifier, 
    byte[] IssuerIN,
    byte[] IssuerINE,
    byte[] IssuerCountryCodeAlpha2, 
    byte[] IssuerCountryCodeAlpha3, 
    byte[] CardProductDetails
    );

Parameter

Type

Description

Aid

String

Application Identifier. Tag 4F Max 16

Label

String

Application Label. Tag 50 Max 16

Priority

byte

Application Priority Indicator. Tag 87

ProprietaryData

new EnhancedInputRequest();
new EnhancedInputRequest(byte[] data);

EnhancedInputRequest

Member

Return

Description

EnhancedSelectionList()

List<DirectoryEntry>

Returns a list of enhanced application selection.

setEnhancedSelectionList()

List<DirectoryEntry>

Sets a list of enhanced application selection.

Title()

String

Title to display.

new InputRequest(); 
new InputRequest(byte[] data);

InputRequest

Member

Type/ Format

Description

Type

byte

Input type.

0x00 = INPUT_TYPE_APPLICATION

0x01 = INPUT_TYPE_LANGUAGE

Timeout

byte

Timeout in seconds

Title

string

Title

Static

Member

Retu rn

Description

INPUT_TYPE_APPLICATION

byte

Selection type is for Application.

Static

INPUT_TYPE_LANGUAGE

byte

Selection type is for Language.

INPUT_STATUS_COMPLETED

byte

To send the status of completed for sendSelection().

INPUT_STATUS_CANCELLED

byte

To send the status of canceled for sendSelection().

INPUT_STATUS_TIMED_OUT

byte

To send the status of timed out for sendSelection().

IData

Member

Type/ Format

Description

StringValue

string

String value

ByteArray

byte[]

Byte array

// String usage
IData data1 = new BaseData("3030");

IData data2 = new BaseData(""); 
data2.StringValue = "3030";

// Array usage
IData data3 = new BaseData(new byte[] {0x30, 0x30});

IData data4 = new BaseData(""); data4.ByteArray = new byte[] {0x30, 0x30};

ITransaction

Member

Type/ Format

Description

PaymentMethods

List of PaymentMeth od

List of the PaymentMethod enumeration.

MSR = For magnetic stripe cards.

Contact = For EMV chip cards.

Contactless = For NFC contactless cards. ManualEntry = Manually entry, no card. When set, other payment methods must not be included.

Barcode = For barcode. BarcodeEncrypted = For barcode with encrypted response.

AppleVAS = For Apple VAS.

GoogleVAS = For Apple VAS.

NFC = For NFC tag.

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.

false - Do not enable QuickChip mode.

true - Enable QuickChip mode. Default.

Timeout

byte

Transaction timeout in seconds. Default is 60 seconds.

0 to 255 - Depending on the device, 0 means no timeout.

ITransaction

CurrenyCode

byte[] 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

byte[] 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 positions from the right.

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.

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.

false = Allow the prompt for a signature if requested.

true = Do not prompt for signature.

ITransaction

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.

Examples:

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”

EMVResponseFormat

byte

The format of the EMV response.

0x00 = Legacy. Default.

0x01 = RFU

MerchantCategory

byte[] 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

byte[] 20

EMV Tag 9F7C – Proprietary merchant data that may be requested. The byte array is null by default.

ITransaction

ECP2FrameData

byte[] 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

List of NFCTransacti onMode

List of NFC transaction modes.

CustomNFCReadData Mode

NFCDataMod e

Custom NFC data mode.

ManualEntryType

byte

User interface sequence.

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)

ITransaction

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

Tip6DisplayMode

byte

Display mode for Tip button 6.

0x00 = % or $

0x01 = Display Custom 0x02 = Display NO TIP 0x03 = Disabled

ITransaction

FunctionalButtonRight Option

byte[] 2

String ID to use for the Right functional button. The byte array is null by default.

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

NFCData NFCDataBuilder.GetNFCData( 
DeviceType deviceType,
byte[] dataBytes);

new NFCData(
        byte[] Data, 
        boolean Encrypted,
        byte EncryptionType, 
        byte[] KSN
        );

Member

Description

Data()

Returns the data payload.

Encrypted()

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

EncryptionType()

Returns the encryption type.

KSN()

Returns the Key Serial Number.

NFCRAPDUData NFCRAPDU(
    byte[] response, 
    byte[] data, 
    boolean encrypted,
    byte encryptionType, 
    byte[] ksn
    );
NFCRAPDUData NFCDataBuilder.GetNFCRAPDUData( 
    DeviceType deviceType,
    byte[] dataBytes,
    );

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.

Static

Member

Return

Description

GetDetail(string data)

string

Returns a string containing NFC detail.

GetEventValue(string data)

NFCEvent

Returns the NFCEvent enumeration.

GetString(NFCEvent value)

string

Returns a string representation of NFCEvent enumeration.

Static

Member

Value

Description

NFC_MIFARE_ULTRALIGHT

String

"nfc_mifare_ultralight"

MIFARE_CLASSIC_1K

String

"mifare_classic_1k"

MIFARE_CLASSIC_4K

String

"mifare_classic_4k"

Static

IO_FAILED

String

"io_failed"

AUTHENTICATION_FAILED

String

"authentication_failed"

PersonalInfoEntry PersonalInfoEntry.GetPersonalInfoEntry( 
DeviceType deviceType,
byte[] dataBytes);

new PersonalInfoEntry( 
    byte[] Data, 
    CaptureType DataType, 
    bool Encrypted,
    byte EncryptionType, 
    byte[] KSN
    );

Member

Description

deviceType

Type of device.

dataBytes

Data to pass in from OnEvent().

Data()

Returns the data payload.

DataType()

Returns the capture type.

Encrypted()

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

PersonalInfoEntry GetPersonalInfoEntry( 
DeviceType deviceType,
byte[] dataBytes);

Member

Description

deviceType

Type of device.

dataBytes

Data to pass in from OnEvent().

CertificateInfo

ConnectionStateBuilder

DirectoryEntry

EnhancedInputRequest

InputRequest

IData

ITransaction

NFCData

NFCRAPDUData

NFCEventBuilder

PersonalInfoEntry

PersonalInfoEntryBuilder

GetString()

Returns string of the ConnectionState enum.

GetValue()

Returns ConnectionState enum from the event data string value.

byte[]

Application Selection Registered Proprietary Data. Tag 9F0A

KernelIdentifier

byte

Kernel Identifier. Tag 9F2A

IssuerIN

byte[3]

Issuer Identification Number. Tag 42

IssuerINE

byte[4]

Issuer Identification Number Extended. Tag 9F0C

IssuerCountryCodeAlpha2

byte[2]

Issuer Country Code (alpha2 format). Tag 5F55

IssuerCountryCodeAlpha3

byte[3]

Issuer Country Code (alpha3 format). Tag 5F56

CardProductDetails

byte[2]

Card Product Details. Tag 9F7D

Type()

int

Selection type.

Timeout()

long

Timeout in seconds to make selection.

SelectionList

List<string>

List of selections for Application and Language depending on the Type.

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

SuppressThankYouMes sage

bool

By default, devices with a display signal the end of a transaction by briefly showing β€œTHANK YOU,” then β€œWELCOME.”

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.

MerchantID

byte[] 15

EMV Tag 9F16 - Used to uniquely identify a given merchant. The byte array is null by default.

TransactionCategory

byte[] 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.

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.

AppleVASMode

VASMode

An enumeration for the Apple VAS Mode.

AppleVASProtocol

VASProtocol

An enumeration for the Apple VAS Protocol.

ManualEntryFormat

byte

Card number valid format.

0x00 = PAN min 8, max 21 digits

ManualEntrySound

byte

Beeper feedback.

0x00 = On keypress sound disabled

0x01 = On keypress sound enabled

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

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

deviceType

Device type.

dataBytes

Data bytes from the NFCAPDUResponse event.

MIFARE_DESFIRE

String

β€œmifare_desfire”

TAG_REMOVED

String

"tag_removed"

FAILED

String

"failed"

EncryptionType()

Returns the encryption type.

KSN()

Returns the Key Serial Number.