com.BTPaySDK
Class BTPay_SDK.MsrReader

java.lang.Object
  extended by com.BTPaySDK.BTPay_SDK.MsrReader
Enclosing class:
BTPay_SDK

public class BTPay_SDK.MsrReader
extends java.lang.Object

Class MsrReader includes all methods for MSR Reader function.


Constructor Summary
BTPay_SDK.MsrReader()
           
 
Method Summary
 int cancelMSRSwipe()
          Disable MSR swipe card.
 int getEncryptMSRFormat(byte[] msrFormat)
          Get the device card encrypted data output format with PIN Key or Data Key.
 int setEncryptMSRFormat(byte msrFormat)
          Set the device card encrypted data output format with PIN Key or Data Key.
 int StartMSRSwipeWithDisplay(java.lang.String line1, java.lang.String line2, java.lang.String line3, java.lang.String line4)
          Enable MSR swipe card.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BTPay_SDK.MsrReader

public BTPay_SDK.MsrReader()
Method Detail

setEncryptMSRFormat

public int setEncryptMSRFormat(byte msrFormat)
Set the device card encrypted data output format with PIN Key or Data Key.

Parameters:
msrFormat - for encrypted data output format.
0x30 - Encrypted card data with Data Key if MSR DUKPT Key had been loaded.
0x31 - Encrypted card data with PIN Key if MSR DUKPT Key had been loaded.(default)
Returns:
success or error code.
See Also:
BTPay_ErrorCode

getEncryptMSRFormat

public int getEncryptMSRFormat(byte[] msrFormat)
Get the device card encrypted data output format with PIN Key or Data Key.

Parameters:
msrFormat - msrFormat[0] for encrypted data output format.
0x30 - Encrypted card data with Data Key if MSR DUKPT Key had been loaded.
0x31 - Encrypted card data with PIN Key if MSR DUKPT Key had been loaded.
Returns:
success or error code.
See Also:
BTPay_ErrorCode

StartMSRSwipeWithDisplay

public int StartMSRSwipeWithDisplay(java.lang.String line1,
                                    java.lang.String line2,
                                    java.lang.String line3,
                                    java.lang.String line4)
Enable MSR swipe card. Returns encrypted MSR data or function key value by call back function.
The function OnSwipeMSRData in interface OnReceiverListener will be called if swiping card data received.

Parameters:
line1 - Display line 1, up to 12 characters.
line2 - Display line 2, up to 16 characters.
line3 - Display line 3, up to 16 characters.
line4 - Display line 4, up to 16 characters.
Returns:
success or error code.
See Also:
OnReceiverListener, BTPay_ErrorCode

cancelMSRSwipe

public int cancelMSRSwipe()
Disable MSR swipe card.

Returns:
success or error code.
See Also:
BTPay_ErrorCode