Function
Start PBOC process request, meanwhile the device start to
search card
parameter
paraName |
type |
description |
pbocType |
int |
Transaction type. PBOCOption.ONLINE_PAY, defined in the jar package, is frequently used. |
intent |
Intent |
Pass parameter, generally the “amount” field, which means the transaction amount. |
listener |
AidlPBOCListener |
PBOC
transaction callback listener |
Return value
Return
value |
Description |
null |
|
process:
interface
AidlPBOCListener{
/**
*
PBOC process
failure
*
@param state device
action state,can
refer to PBOCErrorTransactionCode Class
*
@param code error
code in current state
*/
void
onError(in Intent result);
/**
*
card
searching success
*
@param cardType Card
type can be referred to CardType Class
*
@param data OutputMagCardInfo
Class is used for magnetic card, and OutputRFCardPassInfo Class is used for RF
card. It is null value if IC card is used.
*/
void
onFindingCard(int cardType,
in Intent data);
/**
*
Start
phoc process
*/
void
onStartPBOC();
/**
*
Select
applications
*
@param applicationList
*/
void
onSelectApplication(in List<String> applicationList);
/**
*
Confirm
certification information
*
@param certType certification
Type
*
@param certInfo cdrtification
information
*/
void
onConfirmCertInfo(String certType, String certInfo);
/**
*
Confirm
card information
*
@param info OutputCardInfoData is
used for card reading.
*/
void
onConfirmCardInfo(in Intent info);
/**
*
Input
PIN
*
@param isOnlinePin Is
Onling Pin
*
@param retryTimes Input
times of the off-line pin
*/
void
onRequestInputPIN(boolean isOnlinePin, int retryTimes);
/**
*
Online
connection is requested after PBOC action
analysis *
@param actionAnalysisData Online
connection data, analyzed by OutputPBOCAAData Class
*/
void
onAARequestOnlineProcess(in Intent actionAnalysisData);
/**
*
pboc process
result
*
@param result It
can be referred to PBOCTransactionResult Class.
*
@param data Data
is null if rejection,if
accept, OutputPBOC Class is used to get data.
*/
void
onTransactionResult(int result,
in Intent data);
/**
*
Input
amount is requested */
void
onRequestAmount();
/**
*
Electronic
cash balance is got.
*
@param ecBalance amount,It
can be refered to OutputECBalance Class
*/
void
onReadECBalance(in Intent ecBalance);
/**
*
Offline
electronic cash transaction record collection is
got
*
@param contents transaction
record, It can be referred to OutputOfflineRecord Class
*/
void
onReadCardOfflineRecord(in Intent contents);
}