public interface IProcessingService
Modifier and Type | Interface and Description |
---|---|
static interface |
IProcessingService.IDownloadListener |
Modifier and Type | Method and Description |
---|---|
boolean |
downloadConfigs(ConfigRequest aConfig,
ConfigurationContinuation aContinuation,
MiuraDeviceInfoMessage aDeviceInfo,
IProcessingService.IDownloadListener aListener)
Downloads configs
|
InpasConfigResponse |
getInpasConfig(InpasConfigRequest aRequest,
ConfigurationContinuation aContinuation) |
SpireConfigResponse |
getSpireConfig(SpireConfigRequest aRequest,
ConfigurationContinuation aContinuation) |
KeyResponse |
initialiseKey(KeyRequest aRequest,
ConfigurationContinuation aContinuation)
Request keys from a server
|
void |
startAdvice(CardEmvAdvice aAdvice,
ProcessingContinuation aContinuation) |
void |
startProcessing(BankCard aBankCard,
ProcessingContinuation continuation)
Starts processing without reader.
|
void startProcessing(BankCard aBankCard, ProcessingContinuation continuation)
Note: Method blocks current thread execution until processing it running. Use your preferred thread model.
Example:executor.execute(new Runnable() { void run() { service.startProcessing(card, continuation); } });
Note: Processing may contains several stages. Do not block IProcessingStageListener.onStateChanged(...).
Example:void onStateChanged(aEvent) { // use message passing to notify user interface queue.addEvent(aEvent); }
aBankCard
- bank cardcontinuation
- processing parametersvoid startAdvice(CardEmvAdvice aAdvice, ProcessingContinuation aContinuation)
KeyResponse initialiseKey(KeyRequest aRequest, ConfigurationContinuation aContinuation)
aRequest
- infoboolean downloadConfigs(ConfigRequest aConfig, ConfigurationContinuation aContinuation, MiuraDeviceInfoMessage aDeviceInfo, IProcessingService.IDownloadListener aListener)
aConfig
- os, mpi and configs versionsSpireConfigResponse getSpireConfig(SpireConfigRequest aRequest, ConfigurationContinuation aContinuation)
InpasConfigResponse getInpasConfig(InpasConfigRequest aRequest, ConfigurationContinuation aContinuation)
Copyright © 2018. All rights reserved.