com.BTPaySDK
Class IDTMSRData

java.lang.Object
  extended by com.BTPaySDK.IDTMSRData

public class IDTMSRData
extends java.lang.Object

This class provides all information of card data.
Application can get the card data by calling the Properties of class IDTMSRData when finish swiping.


Field Summary
 byte 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;
 BTPay_SDK.CAPTURE_ENCRYPT_TYPE 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_ENCRYPT_TYPE_NONE:None;
 byte[] cardData
          Get the swiped card data.
Containing complete unparsed swipe data as received from MSR.
 BTPay_SDK.CAPTURE_ENCODE_TYPE 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[] encTrack1
          Get the swiped card Track1 encrypted data.
A byte array containing Track1 encrypted data.
 byte[] encTrack2
          Get the swiped card Track2 encrypted data.
A byte array containing Track2 encrypted data.
 byte[] encTrack3
          Get the swiped card Track3 encrypted data.
A byte array containing Track3 encrypted data.
 BTPay_SDK.EVENT_MSR_Types event
          MSR type,please see EVENT_MSR_Types for more information.
 byte[] KSN
          Get the swiped card KSN (Key Serial Number).
A byte array containing 10 bytes.
 java.lang.String serialNumber
          Get the Reader Serial Number.
 java.lang.String track1
          Get the swiped card Track1 data.
A string containing Track1 masked data expressed as hex characters.
 int track1Length
          Get the swiped card length of Track1 data.
 java.lang.String track2
          Get the swiped card Track2 data.
A string containing Track2 masked data expressed as hex characters.
 int track2Length
          Get the swiped card length of Track2 data.
 java.lang.String track3
          Get the swiped card Track3 data.
A string containing Track3 masked data expressed as hex characters.
 int track3Length
          Get the swiped card length of Track3 data.
 
Constructor Summary
IDTMSRData()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

event

public BTPay_SDK.EVENT_MSR_Types event
MSR type,please see EVENT_MSR_Types for more information.


cardData

public byte[] cardData
Get the swiped card data.
Containing complete unparsed swipe data as received from MSR.


encTrack1

public byte[] encTrack1
Get the swiped card Track1 encrypted data.
A byte array containing Track1 encrypted data.


encTrack2

public byte[] encTrack2
Get the swiped card Track2 encrypted data.
A byte array containing Track2 encrypted data.


encTrack3

public byte[] encTrack3
Get the swiped card Track3 encrypted data.
A byte array containing Track3 encrypted data.


track1

public java.lang.String track1
Get the swiped card Track1 data.
A string containing Track1 masked data expressed as hex characters.


track2

public java.lang.String track2
Get the swiped card Track2 data.
A string containing Track2 masked data expressed as hex characters.


track3

public java.lang.String track3
Get the swiped card Track3 data.
A string containing Track3 masked data expressed as hex characters.


serialNumber

public java.lang.String serialNumber
Get the Reader Serial Number.


KSN

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


track1Length

public int track1Length
Get the swiped card length of Track1 data.


track2Length

public int track2Length
Get the swiped card length of Track2 data.


track3Length

public int track3Length
Get the swiped card length of Track3 data.


cardType

public BTPay_SDK.CAPTURE_ENCODE_TYPE 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


captureEncodeStatus

public byte 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;


captureEncryptType

public BTPay_SDK.CAPTURE_ENCRYPT_TYPE 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_ENCRYPT_TYPE_NONE:None;

Constructor Detail

IDTMSRData

public IDTMSRData()