|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.BTPaySDK.BTPay_SDK.EMVLevel2
public class BTPay_SDK.EMVLevel2
Class EMVLevel2 includes all methods for EMV Level2 function.
Constructor Summary | |
---|---|
BTPay_SDK.EMVLevel2()
|
Method Summary | |
---|---|
int |
completeOnlineEMVTransaction(boolean enableOnline,
ResDataStruct dataBuf)
Complete Online Authorization transaction;the API need to be used if API startEMVTransaction returns "Response code" = 0x0002. |
int |
GetEMVKernelVersion(java.lang.StringBuilder emvVersion)
Get the EMV L2 Version. |
int |
removeApplicationData(java.lang.String strAID)
Removes the Application Data by AID name passed as the parameter. |
int |
removeCAPK(java.lang.String ridIndex)
Removes Certificate Authority Public Key by the RID/Index. |
int |
removeCRL(CRLDataStruct dataBuf)
Removes all CRL as specified by the RID and Index passed as a parameter in the CRLDataStruct class. |
int |
removeCRLUnit(CRLDataStruct dataBuf)
Removes a single CRL data as specified by the RID/Index/Serial Number passed as a parameter in the CRLDataStruct class. |
int |
removeTerminalData()
Removes the Terminal data. |
int |
retrieveAIDList(ResDataStruct dataBuf)
Retrieves all the AID name/length. |
int |
retrieveApplicationData(java.lang.String strAID,
ResDataStruct dataBuf)
Retrieves Application Data by AID. |
int |
retrieveCAPK(java.lang.String ridIndex,
CAKeyStruct dataBuf)
Retrieves Certificate Authority Public Key by the RID/Index. |
int |
retrieveCAPKList(ResDataStruct dataBuf)
Retrieves the Certificate Authority Public Key list. |
int |
retrieveCRLForRID(java.lang.String rid,
ResDataStruct dataBuf)
Retrieve the Certificate Revocation List specific to RID,returns all the serial numbers for a specific RID on the CRL. |
int |
retrieveCRLList(ResDataStruct dataBuf)
Retrieves all the RID in the CRL. |
int |
retrieveTerminalData(TerminalDataStruct dataBuf)
Retrieves the Terminal data. |
int |
setApplicationData(java.lang.String strAID,
ResDataStruct dataBuf)
Set application data by AID. |
int |
setCAPK(CAKeyStruct dataBuf)
Sets Certificate Authority Public Key . |
int |
setCRL(CRLDataStruct dataBuf)
Sets the CRL data as specified by the CRLDataStruct class. |
int |
setTerminalData(TerminalDataStruct dataBuf)
Sets the Terminal data. |
int |
startEMVTransaction(float amount,
float amtOther,
int timeOut1,
int timeOut2,
byte transType,
ResDataStruct dataBuf)
Start EMV transaction. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BTPay_SDK.EMVLevel2()
Method Detail |
---|
public int GetEMVKernelVersion(java.lang.StringBuilder emvVersion)
emvVersion
- for Version.
BTPay_ErrorCode
public int startEMVTransaction(float amount, float amtOther, int timeOut1, int timeOut2, byte transType, ResDataStruct dataBuf)
amount
- Transaction amount value.Example 15.00.amtOther
- Other transaction amount value.timeOut1
- The timeout is define send "Transaction" command until command detect IC card.0 means disable timeout.timeOut2
- The timeout is define Online required Time out.0 means disable timeout.transType
- Transaction type, 1 byte.dataBuf
- the class for input data of TLV format.BTPay_ErrorCode
public int completeOnlineEMVTransaction(boolean enableOnline, ResDataStruct dataBuf)
enableOnline
- true:Online processing with the host(issuer) was completed.
false:Online processing could not be completed due to connection error with the host(issuer).There is no other data if false.dataBuf
- the class for input data and output data.BTPay_ErrorCode
public int retrieveApplicationData(java.lang.String strAID, ResDataStruct dataBuf)
strAID
- the application's ID in hex string,the length is 5~16 bytes,example "A0 00 00 00 04 F3 03".dataBuf
- the class for output data stores PROCESSING data according to giving ID.
BTPay_ErrorCode
public int removeApplicationData(java.lang.String strAID)
strAID
- the application's ID in hex string,the length is 5~16 bytes,example "A0 00 00 00 04 F3 03".
BTPay_ErrorCode
public int setApplicationData(java.lang.String strAID, ResDataStruct dataBuf)
strAID
- the application's ID in hex string,the length is 5~16 bytes,example "A0 00 00 00 04 F3 03".dataBuf
- the class for application data.
BTPay_ErrorCode
public int retrieveAIDList(ResDataStruct dataBuf)
dataBuf
- the class for all AID name/length.
the format is {AID_num (n)} {AID_Len 1} {AID 1} ...{AID_Len n} {AID n}.
BTPay_ErrorCode
public int retrieveTerminalData(TerminalDataStruct dataBuf)
dataBuf
- the class for Terminal data,please see TerminalDataStruct define for more information.
BTPay_ErrorCode
public int removeTerminalData()
BTPay_ErrorCode
public int setTerminalData(TerminalDataStruct dataBuf)
dataBuf
- the class for Terminal data.
BTPay_ErrorCode
public int retrieveCAPKList(ResDataStruct dataBuf)
dataBuf
- the class for all the CAPK RID and index,every item is 6 bytes, bytes 1-5 RID,bytes 6 index.BTPay_ErrorCode
public int retrieveCAPK(java.lang.String ridIndex, CAKeyStruct dataBuf)
ridIndex
- The RID and Index of the key to retrieve, the format is hex string,example "A0 00 00 00 03 57".dataBuf
- the class for the CAPK as specified by the RID/Index.
BTPay_ErrorCode
public int removeCAPK(java.lang.String ridIndex)
ridIndex
- The RID and Index of the key to remove, the format is hex string,example "A0 00 00 00 03 57".
BTPay_ErrorCode
public int setCAPK(CAKeyStruct dataBuf)
dataBuf
- the class for the CAPK containing the RID, Index, Exponent and key data to set.
BTPay_ErrorCode
public int retrieveCRLForRID(java.lang.String rid, ResDataStruct dataBuf)
rid
- the RID of the certificate to search for , the format is hex string,example "A0 00 00 00 03".dataBuf
- the class for all the serial numbers for a specific RID on the CRL, for each object: 5 bytes: AID 1 byte: Index 3 bytes: Serial Number.BTPay_ErrorCode
public int removeCRLUnit(CRLDataStruct dataBuf)
dataBuf
- The class for CRL containing the RID, Index and serial number.
BTPay_ErrorCode
public int setCRL(CRLDataStruct dataBuf)
dataBuf
- The class for CRL containing the RID, Index and serial number.
BTPay_ErrorCode
public int retrieveCRLList(ResDataStruct dataBuf)
dataBuf
- The class for all the RID in the CRL,5-byte objects for each RID,the format:{RID number (n)} {RID 1}...{RID n}.
BTPay_ErrorCode
public int removeCRL(CRLDataStruct dataBuf)
dataBuf
- The class for CRL containing the RID, Index.
BTPay_ErrorCode
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |