example:
Parameter:
pbocType:consumer
amount
Intent:
User_device:select
the type of the reading card.
InputPBOCInitData.AMOUNT_FLAG:transaction
amount
listener:an
implementation class of com.basewin.aidl.OnPBOCListener; Please
refer to 12.3:Detailed
annotation of PBOC process
After
the PBOC is started, the swiping card listener will be called when swipe or
insert card.Please refer to 12.3:Detailed
annotation of PBOC process
Swiping
card listener is showed on the following graph:
The
executive process of Ic card:
1.
onFindingCard(int
cardType, Intent data)
2.
onStartPBOC()
3.
onSelectApplication(List<String>
applicationList)
4.
onConfirmCardInfo(Intent
info):
The
pinpad can be called in the functioin When the “confirm”is clicked, please
execute:
BCDHelper.hex2DebugHexString(data,data.length)
ServiceManager.getInstence().getPboc().comfirmPinpad(data);
5.
The
following process will be executed after the confirm procedure
finished.
onAARequestOnlineProcess(Intent
actionAnalysisData)
6.
Input
password in (5)->execute
organization message->send
message etc.
The
executive process of non-contact card:
1.
onFindingCard(int
cardType, Intent data)
2.
onTransactionResult(int result, Intent data)
6.
Input
password in (2)->execute
organization message->send
message etc.
The
executive process of magnetic strip card:
1.
onFindingCard(int
cardType, Intent data)
6.
Input
password in (1)->execute
organization message->send
message etc.
If
you want to stop PBOC listener, please execute the following
procedure:
ServiceManager.getInstence().getPboc().stopTransfer();