Class PINPadService
java.lang.Object
de.gmxhome.conrad.jpos.jpos_base.JposBase
de.gmxhome.conrad.jpos.jpos_base.pinpad.PINPadService
- All Implemented Interfaces:
jpos.loader.JposServiceInstance
,jpos.services.BaseService
,jpos.services.PINPadService110
,jpos.services.PINPadService111
,jpos.services.PINPadService112
,jpos.services.PINPadService113
,jpos.services.PINPadService114
,jpos.services.PINPadService115
,jpos.services.PINPadService116
,jpos.services.PINPadService13
,jpos.services.PINPadService14
,jpos.services.PINPadService15
,jpos.services.PINPadService16
,jpos.services.PINPadService17
,jpos.services.PINPadService18
,jpos.services.PINPadService19
PINPad service implementation. For more details about getter, setter and method implementations,
see JposBase.
-
Field Summary
FieldsModifier and TypeFieldDescriptionInstance of a class implementing the PINPadInterface for PIN pad specific setter and method calls bound to the property set.Fields inherited from class de.gmxhome.conrad.jpos.jpos_base.JposBase
Device, DeviceInterface, Props
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
beginEFTTransaction(String pinPadSystem, int transactionHost)
void
computeMAC(String inMsg, String[] outMsg)
void
void
endEFTTransaction(int completionCode)
long
int
boolean
int
boolean
boolean
int
int
boolean
int
byte[]
byte[]
byte[]
byte[]
int
boolean
Reset EFT transaction, to be called whenever the PINPad needs to be reset, for example after claim or timeout.void
setAccountNumber(String accountNumber)
void
setAmount(long amount)
void
setMaximumPINLength(int maximumPINLength)
void
setMerchantID(String merchantID)
void
setMinimumPINLength(int minimumPINLength)
void
setPrompt(int prompt)
void
setPromptLanguage(String promptLanguage)
void
setTerminalID(String terminalID)
void
setTrack1Data(byte[] track1Data)
void
setTrack2Data(byte[] track2Data)
void
setTrack3Data(byte[] track3Data)
void
setTrack4Data(byte[] track4Data)
void
setTransactionType(int transactionType)
void
void
Methods inherited from class de.gmxhome.conrad.jpos.jpos_base.JposBase
callNowOrLater, check, check, check, check, checkBusy, checkClaimed, checkEnabled, checkEnabledUnclaimed, checkFirstEnabled, checkHealth, checkNoChangedOrClaimed, checkOpened, claim, clearInput, clearInputProperties, clearOutput, close, compareFirmwareVersion, deepToString, deleteInstance, directIO, getAsyncMode, getAutoDisable, getCapCompareFirmwareVersion, getCapPowerReporting, getCapStatisticsReporting, getCapUpdateFirmware, getCapUpdateStatistics, getCheckHealthText, getClaimed, getDataCount, getDataEventEnabled, getDeviceEnabled, getDeviceServiceDescription, getDeviceServiceVersion, getFreezeEvents, getOutputID, getPhysicalDeviceDescription, getPhysicalDeviceName, getPowerNotify, getPowerState, getPropertyString, getState, logAsyncCall, logCall, logCall, logGet, logGet, logPreCall, logPreCall, logPreSet, logSet, open, release, removeOuterArraySpecifier, resetStatistics, retrieveStatistics, setAsyncMode, setAutoDisable, setDataEventEnabled, setDeviceEnabled, setFreezeEvents, setPowerNotify, signalRelease, startClaiming, updateFirmware, updateStatistics
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface jpos.services.BaseService
checkHealth, claim, close, directIO, getCheckHealthText, getClaimed, getDeviceEnabled, getDeviceServiceDescription, getDeviceServiceVersion, getFreezeEvents, getPhysicalDeviceDescription, getPhysicalDeviceName, getState, open, release, setDeviceEnabled, setFreezeEvents
Methods inherited from interface jpos.loader.JposServiceInstance
deleteInstance
Methods inherited from interface jpos.services.PINPadService110
clearInputProperties
Methods inherited from interface jpos.services.PINPadService13
clearInput, getCapPowerReporting, getDataCount, getDataEventEnabled, getPowerNotify, getPowerState, setDataEventEnabled, setPowerNotify
Methods inherited from interface jpos.services.PINPadService18
getCapStatisticsReporting, getCapUpdateStatistics, resetStatistics, retrieveStatistics, updateStatistics
Methods inherited from interface jpos.services.PINPadService19
compareFirmwareVersion, getCapCompareFirmwareVersion, getCapUpdateFirmware, updateFirmware
-
Field Details
-
PINPad
Instance of a class implementing the PINPadInterface for PIN pad specific setter and method calls bound to the property set. Almost always the same object as Data.
-
-
Constructor Details
-
PINPadService
Constructor. Stores given property set and device implementation object.- Parameters:
props
- Property set.device
- Device implementation object.
-
-
Method Details
-
resetEFTTransaction
public boolean resetEFTTransaction() throws jpos.JposExceptionReset EFT transaction, to be called whenever the PINPad needs to be reset, for example after claim or timeout. The default implementation resets PINEntryEnabled and the service property EFTTransactionStarted and clears the data event queue.
This method returns true if a pending transaction has been reset, false if no transaction was pending.- Returns:
- True if EFT transaction has been reset, false if PINpad was still idle.
- Throws:
jpos.JposException
- If an error occurred
-
getCapDisplay
public int getCapDisplay() throws jpos.JposException- Specified by:
getCapDisplay
in interfacejpos.services.PINPadService13
- Throws:
jpos.JposException
-
getCapLanguage
public int getCapLanguage() throws jpos.JposException- Specified by:
getCapLanguage
in interfacejpos.services.PINPadService13
- Throws:
jpos.JposException
-
getCapKeyboard
public boolean getCapKeyboard() throws jpos.JposException- Specified by:
getCapKeyboard
in interfacejpos.services.PINPadService13
- Throws:
jpos.JposException
-
getCapMACCalculation
public boolean getCapMACCalculation() throws jpos.JposException- Specified by:
getCapMACCalculation
in interfacejpos.services.PINPadService13
- Throws:
jpos.JposException
-
getCapTone
public boolean getCapTone() throws jpos.JposException- Specified by:
getCapTone
in interfacejpos.services.PINPadService13
- Throws:
jpos.JposException
-
getAccountNumber
- Specified by:
getAccountNumber
in interfacejpos.services.PINPadService13
- Throws:
jpos.JposException
-
getAdditionalSecurityInformation
- Specified by:
getAdditionalSecurityInformation
in interfacejpos.services.PINPadService13
- Throws:
jpos.JposException
-
getAmount
public long getAmount() throws jpos.JposException- Specified by:
getAmount
in interfacejpos.services.PINPadService13
- Throws:
jpos.JposException
-
getAvailableLanguagesList
- Specified by:
getAvailableLanguagesList
in interfacejpos.services.PINPadService13
- Throws:
jpos.JposException
-
getAvailablePromptsList
- Specified by:
getAvailablePromptsList
in interfacejpos.services.PINPadService13
- Throws:
jpos.JposException
-
getEncryptedPIN
- Specified by:
getEncryptedPIN
in interfacejpos.services.PINPadService13
- Throws:
jpos.JposException
-
getMaximumPINLength
public int getMaximumPINLength() throws jpos.JposException- Specified by:
getMaximumPINLength
in interfacejpos.services.PINPadService13
- Throws:
jpos.JposException
-
getMerchantID
- Specified by:
getMerchantID
in interfacejpos.services.PINPadService13
- Throws:
jpos.JposException
-
getMinimumPINLength
public int getMinimumPINLength() throws jpos.JposException- Specified by:
getMinimumPINLength
in interfacejpos.services.PINPadService13
- Throws:
jpos.JposException
-
getPINEntryEnabled
public boolean getPINEntryEnabled() throws jpos.JposException- Specified by:
getPINEntryEnabled
in interfacejpos.services.PINPadService13
- Throws:
jpos.JposException
-
getPrompt
public int getPrompt() throws jpos.JposException- Specified by:
getPrompt
in interfacejpos.services.PINPadService13
- Throws:
jpos.JposException
-
getPromptLanguage
- Specified by:
getPromptLanguage
in interfacejpos.services.PINPadService13
- Throws:
jpos.JposException
-
getTerminalID
- Specified by:
getTerminalID
in interfacejpos.services.PINPadService13
- Throws:
jpos.JposException
-
getTrack1Data
public byte[] getTrack1Data() throws jpos.JposException- Specified by:
getTrack1Data
in interfacejpos.services.PINPadService13
- Throws:
jpos.JposException
-
getTrack2Data
public byte[] getTrack2Data() throws jpos.JposException- Specified by:
getTrack2Data
in interfacejpos.services.PINPadService13
- Throws:
jpos.JposException
-
getTrack3Data
public byte[] getTrack3Data() throws jpos.JposException- Specified by:
getTrack3Data
in interfacejpos.services.PINPadService13
- Throws:
jpos.JposException
-
getTrack4Data
public byte[] getTrack4Data() throws jpos.JposException- Specified by:
getTrack4Data
in interfacejpos.services.PINPadService15
- Throws:
jpos.JposException
-
getTransactionType
public int getTransactionType() throws jpos.JposException- Specified by:
getTransactionType
in interfacejpos.services.PINPadService13
- Throws:
jpos.JposException
-
setAccountNumber
- Specified by:
setAccountNumber
in interfacejpos.services.PINPadService13
- Throws:
jpos.JposException
-
setAmount
public void setAmount(long amount) throws jpos.JposException- Specified by:
setAmount
in interfacejpos.services.PINPadService13
- Throws:
jpos.JposException
-
setMaximumPINLength
public void setMaximumPINLength(int maximumPINLength) throws jpos.JposException- Specified by:
setMaximumPINLength
in interfacejpos.services.PINPadService13
- Throws:
jpos.JposException
-
setMerchantID
- Specified by:
setMerchantID
in interfacejpos.services.PINPadService13
- Throws:
jpos.JposException
-
setMinimumPINLength
public void setMinimumPINLength(int minimumPINLength) throws jpos.JposException- Specified by:
setMinimumPINLength
in interfacejpos.services.PINPadService13
- Throws:
jpos.JposException
-
setPrompt
public void setPrompt(int prompt) throws jpos.JposException- Specified by:
setPrompt
in interfacejpos.services.PINPadService13
- Throws:
jpos.JposException
-
setPromptLanguage
- Specified by:
setPromptLanguage
in interfacejpos.services.PINPadService13
- Throws:
jpos.JposException
-
setTerminalID
- Specified by:
setTerminalID
in interfacejpos.services.PINPadService13
- Throws:
jpos.JposException
-
setTrack1Data
public void setTrack1Data(byte[] track1Data) throws jpos.JposException- Specified by:
setTrack1Data
in interfacejpos.services.PINPadService13
- Throws:
jpos.JposException
-
setTrack2Data
public void setTrack2Data(byte[] track2Data) throws jpos.JposException- Specified by:
setTrack2Data
in interfacejpos.services.PINPadService13
- Throws:
jpos.JposException
-
setTrack3Data
public void setTrack3Data(byte[] track3Data) throws jpos.JposException- Specified by:
setTrack3Data
in interfacejpos.services.PINPadService13
- Throws:
jpos.JposException
-
setTrack4Data
public void setTrack4Data(byte[] track4Data) throws jpos.JposException- Specified by:
setTrack4Data
in interfacejpos.services.PINPadService15
- Throws:
jpos.JposException
-
setTransactionType
public void setTransactionType(int transactionType) throws jpos.JposException- Specified by:
setTransactionType
in interfacejpos.services.PINPadService13
- Throws:
jpos.JposException
-
beginEFTTransaction
public void beginEFTTransaction(String pinPadSystem, int transactionHost) throws jpos.JposException- Specified by:
beginEFTTransaction
in interfacejpos.services.PINPadService13
- Throws:
jpos.JposException
-
computeMAC
- Specified by:
computeMAC
in interfacejpos.services.PINPadService13
- Throws:
jpos.JposException
-
enablePINEntry
public void enablePINEntry() throws jpos.JposException- Specified by:
enablePINEntry
in interfacejpos.services.PINPadService13
- Throws:
jpos.JposException
-
endEFTTransaction
public void endEFTTransaction(int completionCode) throws jpos.JposException- Specified by:
endEFTTransaction
in interfacejpos.services.PINPadService13
- Throws:
jpos.JposException
-
updateKey
- Specified by:
updateKey
in interfacejpos.services.PINPadService13
- Throws:
jpos.JposException
-
verifyMAC
- Specified by:
verifyMAC
in interfacejpos.services.PINPadService13
- Throws:
jpos.JposException
-