|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.BTPaySDK.BTPay_SDK.PINPad
public class BTPay_SDK.PINPad
Class PINPad includes all methods for PINPad function.
Constructor Summary | |
---|---|
BTPay_SDK.PINPad()
|
Method Summary | |
---|---|
int |
CancelPin()
Cancel enter from keypad,includes PIN,Numeric,Account,Encrypted data,Function Key and Amount. |
int |
getAmount(byte bFlag,
byte iMax,
byte iMin,
int kID)
Get amount key code from keypad, Returns value of entered amount in OnPinpadData of interface OnReceiverListener. |
int |
getCardAccount(byte kFlag,
int iMax,
int iMin,
java.lang.String line1,
java.lang.String line2)
Get Card account number from keyboad,Returns value of entered account numbers in OnPinpadData of interface OnReceiverListener. |
int |
getEncryptedData(boolean eFlag,
int iMax,
int iMin,
int kID)
Get encrypted data,Returns value of entered data in OnPinpadData of interface OnReceiverListener. |
int |
getEncryptedPIN(byte kType,
java.lang.String account,
java.lang.String line1,
java.lang.String line2,
java.lang.String line3)
Get Encrypted PIN from keyboard,Returns pinblock/ksn of entered PIN value in OnPinpadData of interface OnReceiverListener. |
int |
getFunctionKey()
Get Function Key from keyboard, Returns value of pressed key in OnPinpadData of interface OnReceiverListener. |
int |
getNumeric(boolean m_eFlag,
byte m_iMax,
byte m_iMin,
int kID)
Get numeric key code from keypad,Returns value of entered numeric key in OnPinpadData of interface OnReceiverListener. . |
int |
getPinLength(byte[] lenBuf)
Get Encrypted PIN length. |
int |
getPINpadStatus(byte[] m_Status)
Get PINPad status. |
int |
setPinLength(int m_iMin,
int m_iMax)
Set Encrypted PIN length. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BTPay_SDK.PINPad()
Method Detail |
---|
public int getPINpadStatus(byte[] m_Status)
m_Status
- Pad status,one byte.BTPay_ErrorCode
public int CancelPin()
BTPay_ErrorCode
public int getFunctionKey()
BTPay_ErrorCode
public int getEncryptedPIN(byte kType, java.lang.String account, java.lang.String line1, java.lang.String line2, java.lang.String line3)
kType
- for the key type.account
- for external account,ASCII code(0x30~0x39),the account will not exist if the m_kType is 0x10~0x11.
the length must be 13~20.line1
- Display line 1, up to 12 characters.line2
- Display line 2, up to 16 characters.line3
- Display line 3, up to 16 characters.BTPay_ErrorCode
public int getNumeric(boolean m_eFlag, byte m_iMax, byte m_iMin, int kID)
m_eFlag
- Control whether the numeric key need to display in plain text,one byte.m_iMax
- The max length for numeric,max length can not beyond 16.m_iMin
- The minimum length for numeric, minimum length can not less than 1.kID
- the RSA encryption data ID.every ID for a encryption data of characters and language.BTPay_ErrorCode
public int getCardAccount(byte kFlag, int iMax, int iMin, java.lang.String line1, java.lang.String line2)
kFlag
- for type.iMax
- for max length of card account to be got from keypad, no more than 20.iMin
- for min length of card account to be got from keypad, no less than 12.line1
- Display line 1, up to 12 characters.line2
- Display line 2, up to 16 characters.BTPay_ErrorCode
public int getEncryptedData(boolean eFlag, int iMax, int iMin, int kID)
eFlag
- 1. false:not the last package;
2. true:the last package.iMax
- The max length for numeric,max length can not beyond 16.iMin
- The minimum length for numeric, minimum length can not less than 1.kID
- the RSA encryption data ID.every ID for a encryption data of characters and language.BTPay_ErrorCode
public int getAmount(byte bFlag, byte iMax, byte iMin, int kID)
bFlag
- RFUiMax
- The max length for amount,max length can not beyond 15.iMin
- The minimum length for amount, minimum length can not less than 0.kID
- the RSA encryption data ID.every ID for a encryption data of characters and language.BTPay_ErrorCode
public int getPinLength(byte[] lenBuf)
lenBuf
- lenBuf[0]is the max length for encrypted PIN and lenBuf[1] is the minimum length for encrypted PIN.
BTPay_ErrorCode
public int setPinLength(int m_iMin, int m_iMax)
m_iMax
- The max length for encrypted PIN, max length can not beyond 12.
BTPay_ErrorCode
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |