IDTech Windows SDK Guide  1.1.81.0
API reference for SmartPIN L100
IDTechSDK.IDTTransactionData Class Reference

Static Public Member Functions

static byte[] decryptData (bool isAES, byte[] ksn, string BDK, byte[] encodedData)
 
static byte[] decryptData (bool isAES, byte[] ksn, string BDK1, string BDK2, byte[] encodedData)
 

Public Attributes

EVENT_TRANSACTION_DATA_Types Event
 
EVENT_NOTIFICATION_Types Notification
 
byte[] msr_rawData
 
byte[] msr_encTrack1
 
byte[] msr_encTrack2
 
byte[] msr_encTrack3
 
String msr_track1
 
String msr_track2
 
String msr_track3
 
String device_RSN
 
byte[] msr_KSN
 
int msr_track1Length
 
int msr_track2Length
 
int msr_track3Length
 
CAPTURE_ENCODE_TYPE msr_cardType
 
byte msr_captureEncodeStatus
 
CAPTURE_ENCRYPT_TYPE msr_captureEncryptType
 
int msr_errorCode
 
int emv_rfStateCode
 
int iccPresent
 
byte[] msr_sessionID
 
byte[] msr_hashTrack1
 
byte[] msr_hashTrack2
 
byte[] msr_hashTrack3
 
KEY_VARIANT_TYPE msr_keyVariantType
 
byte[] msr_extendedField
 
int isCTLS
 
CTLS_APPLICATION ctlsApplication
 
byte[] emv_clearingRecord
 
byte[] emv_encryptedTags
 
byte[] emv_unencryptedTags
 
EMV_RESULT_CODE emv_resultCode
 
EMV_ENCRYPTION_MODE emv_encryptionMode
 
byte[] emv_maskedTags
 
bool emv_hasAdvise
 
bool emv_hasReversal
 
string pin_pinblock
 
string pin_KSN
 
string pin_KeyEntry
 
byte SW1
 
byte SW2
 
byte[] mac
 
byte[] macKSN
 

Detailed Description

Class for swipe data

Member Function Documentation

static byte [] IDTechSDK.IDTTransactionData.decryptData ( bool  isAES,
byte []  ksn,
string  BDK,
byte []  encodedData 
)
static

Decrypt Data

Decrypted TDES or AES encrypted data if the BDK and KSN are known. Requires DecryptDLL.dll

Parameters
isAESTRUE = AES, FALSE = TDES
ksnKey Serial Number
BDKBase Derivitive Key
Returns
RETURN_CODE: Values can be parsed with errorCode.getErrorString()
static byte [] IDTechSDK.IDTTransactionData.decryptData ( bool  isAES,
byte []  ksn,
string  BDK1,
string  BDK2,
byte []  encodedData 
)
static

Decrypt Data

Decrypted TDES or AES encrypted data if two initial BDK's and KSN are known. Requires DecryptDLL.dll

Parameters
isAESTRUE = AES, FALSE = TDES
ksnKey Serial Number
BDK1First Base Derivitive Key
BDK2Second Base Derivitive Key
Returns
RETURN_CODE: Values can be parsed with errorCode.getErrorString()

Member Data Documentation

CTLS_APPLICATION IDTechSDK.IDTTransactionData.ctlsApplication

CTLS Application

String IDTechSDK.IDTTransactionData.device_RSN

Get the Reader Serial Number.

byte [] IDTechSDK.IDTTransactionData.emv_clearingRecord

clearing record TLV

byte [] IDTechSDK.IDTTransactionData.emv_encryptedTags

Encrypted Tags TLV

EMV_ENCRYPTION_MODE IDTechSDK.IDTTransactionData.emv_encryptionMode

EMV Encryption Mode

bool IDTechSDK.IDTTransactionData.emv_hasAdvise

Advise

bool IDTechSDK.IDTTransactionData.emv_hasReversal

Reversal

byte [] IDTechSDK.IDTTransactionData.emv_maskedTags

Masked Tags TLV

EMV_RESULT_CODE IDTechSDK.IDTTransactionData.emv_resultCode

EMV Result Code

int IDTechSDK.IDTTransactionData.emv_rfStateCode

For some Error Codes, the RF State Code indicates the exact Reader-Card command that failed. This helps determine the exact place where the failure occurred.

byte [] IDTechSDK.IDTTransactionData.emv_unencryptedTags

Unencrypted Tags TLV

EVENT_TRANSACTION_DATA_Types IDTechSDK.IDTTransactionData.Event

Transaction Data type,please see EVENT_TRANSACTION_DATA_Types for more information.

int IDTechSDK.IDTTransactionData.iccPresent

Get the swiped card ICC Status.
0 = Unknown 1 = True 2 = False

int IDTechSDK.IDTTransactionData.isCTLS

Track data was captured via CTLS interface 0 = Unknown 1 = True 2 = False

byte [] IDTechSDK.IDTTransactionData.mac

Message Authentication Code

byte [] IDTechSDK.IDTTransactionData.macKSN

Message Authentication Code Key Serial Number

byte IDTechSDK.IDTTransactionData.msr_captureEncodeStatus

Get the swiped card decoded status.
0x00:decoded data success;
Bit0:1-track1 data error;
Bit1:1-track2 data error;
Bit2:1-track3 data error;
Bit3:1-track1 encrypted data error;
Bit4:1-track2 encrypted data error;
Bit5:1-track3 encrypted data error;
Bit6:1-KSN error;

CAPTURE_ENCRYPT_TYPE IDTechSDK.IDTTransactionData.msr_captureEncryptType

Get the swiped card encrypted type,please see CAPTURE_ENCRYPT_TYPE for more information.
CAPTURE_ENCRYPT_TYPE_TDES:TDES;
CAPTURE_ENCRYPT_TYPE_AES:AES;

CAPTURE_ENCODE_TYPE IDTechSDK.IDTTransactionData.msr_cardType

Get the swiped card type,please see CAPTURE_ENCODE_TYPE for more information.
MSR card type:
CAPTURE_ENCODE_TYPE_ISOABA:ISO/ABA format
CAPTURE_ENCODE_TYPE_AAMVA:AAMVA format
CAPTURE_ENCODE_TYPE_Other:Other
CAPTURE_ENCODE_TYPE_Raw:Raw; undecoded format
CAPTURE_ENCODE_TYPE_JisI_II:JIS I or JIS II

byte [] IDTechSDK.IDTTransactionData.msr_encTrack1

Get the swiped card Track1 encrypted data.
A byte array containing Track1 encrypted data.

byte [] IDTechSDK.IDTTransactionData.msr_encTrack2

Get the swiped card Track2 encrypted data.
A byte array containing Track2 encrypted data.

byte [] IDTechSDK.IDTTransactionData.msr_encTrack3

Get the swiped card Track3 encrypted data.
A byte array containing Track3 encrypted data.

int IDTechSDK.IDTTransactionData.msr_errorCode

Contains error code when data is not returned

byte [] IDTechSDK.IDTTransactionData.msr_extendedField

Extended Field Data. Byte 0: 1 = Hash-SHA256

byte [] IDTechSDK.IDTTransactionData.msr_hashTrack1

Get the swiped card Track1 hash data.
A byte array containing Track1 hash data.

byte [] IDTechSDK.IDTTransactionData.msr_hashTrack2

Get the swiped card Track2 hash data.
A byte array containing Track2 hash data.

byte [] IDTechSDK.IDTTransactionData.msr_hashTrack3

Get the swiped card Track3 hash data.
A byte array containing Track3 hash data.

KEY_VARIANT_TYPE IDTechSDK.IDTTransactionData.msr_keyVariantType

KEY_VARIANT_TYPE_DATA = Data Variant key used
KEY_VARIANT_TYPE_PIN = PIN Variant key used

byte [] IDTechSDK.IDTTransactionData.msr_KSN

Get the swiped card KSN (Key Serial Number).
A byte array containing 10 bytes.

byte [] IDTechSDK.IDTTransactionData.msr_rawData

Get the card data raw data.
Containing complete unparsed transaction data as received from device.

byte [] IDTechSDK.IDTTransactionData.msr_sessionID

Get the swiped card Session ID.
A byte arrary to get session ID, if exists.

String IDTechSDK.IDTTransactionData.msr_track1

Get the swiped card Track1 data.
A string containing Track1 masked data expressed as hex characters.

int IDTechSDK.IDTTransactionData.msr_track1Length

Get the swiped card length of Track1 data.

String IDTechSDK.IDTTransactionData.msr_track2

Get the swiped card Track2 data.
A string containing Track2 masked data expressed as hex characters.

int IDTechSDK.IDTTransactionData.msr_track2Length

Get the swiped card length of Track2 data.

String IDTechSDK.IDTTransactionData.msr_track3

Get the swiped card Track3 data.
A string containing Track3 masked data expressed as hex characters.

int IDTechSDK.IDTTransactionData.msr_track3Length

Get the swiped card length of Track3 data.

EVENT_NOTIFICATION_Types IDTechSDK.IDTTransactionData.Notification

Event Notification type,please see EVENT_NOTIFICATION_Types for more information.

string IDTechSDK.IDTTransactionData.pin_KeyEntry

KSN for Pinblock

string IDTechSDK.IDTTransactionData.pin_KSN

KSN for Pinblock

string IDTechSDK.IDTTransactionData.pin_pinblock

PIN block from PINPAD

byte IDTechSDK.IDTTransactionData.SW1

SW1

byte IDTechSDK.IDTTransactionData.SW2

SW2


The documentation for this class was generated from the following file: