Skip to main content

Terminal methods overview

The basic operation modes of terminal method calls are:

  1. Synchronous
    Method calls are blocking and return after the operation is finished successfully or throw a TimException otherwise. Please not that it is highly discouraged to use synchronous method calls on mobile platforms like Android because the main thread will be blocked by a synchronous call which may not be tolerated by the platform, as they are quite strict regarding blocking calls. This may result in a crash of the mobile App.

  2. Asynchronous
    Method returns immediately after the operation has started or throws a TimException otherwise. A listener-event-method will be called after the operation is finished successfully. All listener-event-methods contain a TimEvent. In case of failure a TimException is included. User-implemented listener-handlers can be added to the Terminal-instance with addListener.

Functions called on terminal perform synchronous by default. The asynchronous method has the same name with Async appended to its name.

Code example for adding a terminal listener:

/** Asynchronous listener handling terminal events. */
class MyTerminalListener extends com.six.DefaultTerminalListener {
/* Overwrite all required methods from the DefaultTerminalListener class
* herein which you want to use.
*/
}
// Create a new instance of the implemented MyTerminalListener
// class which then can be added to existing terminal object to handle
// the events that you've implemented.
terminal.addListener(new MyTerminalListener());

Main / guide Retail terminal functions​

Sync method
Async method

Completed eventDescription
activate
activateAsync
activateCompletedOpen a user shift.
applicationInformation
applicationInformationAsync
applicationInformationCompleted Request the list of brands available on the terminal.
balance
balanceAsync
balanceCompletedForce the EFT Terminal to transmit all transactions to the
host system as well to do the daily closing.
cancelAborts an open asynchronous Financial Transaction or Non-Financial Transaction request, except for a commit or rollback request, which cannot be cancelled.
changeSettings
changeSettingsAsync
changeSettingsCompleted Change configuration parameters of the EFT Terminal.
commit
commitAsync
commitCompletedPerform Commit-operation after a successful Transaction call.
connect
connectAsync
connectCompletedInitiates a connection to the EFT Terminal.
counterRequest
counterRequestAsync
counterRequestCompleted Get counter informations from the EFT Terminal.
dccRates
dccRatesAsync
dccRatesCompletedRequest DCC rates from the EFT Terminal.
deactivate
deactivateAsync
deactivateCompletedClose a user shift.
disconnect
disconnectAsync
disconnectedInterrupts the connection to the EFT Terminal.
hardwareInformation
hardwareInformationAsync
hardwareInformationCompleted Get hardware information from the EFT Terminal.
login
loginAsync
loginCompletedActivate a communication session between the ECR and
the terminal.
logout
logoutAsync
logoutCompletedTerminate an active communication session between the ECR
and the terminal.
reboot
rebootAsync
rebootCompletedForce the EFT Terminal to reboot.
receiptRequest
receiptRequestAsync
receiptRequestCompleted Receive the latest receipt or a list of silent receipts.
reconciliation
reconciliationAsync
reconciliationCompleted Force the EFT Terminal to transmit all financial transactions
to the host system.
reconfig
reconfigAsync
reconfigCompletedForce the EFT Terminal to get the configuration from the service center.
rollback
rollbackAsync
rollbackCompletedPrevent a transaction from being committed to the transaction
log and generates a technical reversal of the authorization.
softwareUpdate
softwareUpdateAsync
softwareUpdateCompleted Force the EFT Terminal to start a Software Update.
systemInformation
systemInformationAsync
systemInformationCompleted Request system information from the EFT Terminal.
transaction
transactionAsync
transactionCompletedStarts an EFT Terminal Transaction.

Guide Petrol terminal functions​

Sync method
Async method

Completed eventDescription
initTransaction
initTransactionAsync
initTransactionCompletedRetrieve card data for the presented card.

Guide Unattended terminal functions​

Sync method
Async method

Completed eventDescription
openReader
openReaderAsync
openReaderCompletedOpens the shutter of the card reader.
amtAdjustmentSend an amount adjustment notification to the terminal during an open transaction. The amount is used as the new amount for the transaction.
closeMaintenanceWindow
closeMaintenanceWindowAsync
closeMaintenanceWindowCompletedProhibits the EFT terminal from performing any triggered maintenance tasks.
closeReader
closeReaderAsync
closeReaderCompletedCloses the shutter of the card reader.
commit
commitAsync
commitCompletedCommits a transaction after succesful authorization. A lower amount may be commited than the authorized amount.
ejectCard
ejectCardAsync
ejectCardCompletedEjects the card from the card reader.
holdCommitIncreases the commit timeout.
openMaintenanceWindow
openMaintenanceWindowAsync
openMaintenanceWindowCompletedOpens a maintenance window where the terminal can perform all maintenance processes it was not able to perform before.>

Banking terminal functions​

Sync method
Async method

Completed eventDescription
balanceInquiry
balanceInquiryAsync
balanceInquiryCompletedPerform a balance check of a card/account on the terminal.

Guide Dialog terminal functions​

Sync method
Async method

Completed eventDescription
openDialogMode
openDialogModeAsync
openDialogModeCompletedOpen dialog mode on the terminal.
closeDialogMode
closeDialogModeAsync
closeDialogModeCompletedClose dialog mode on the terminal.
showDialog
showDialogAsync
showDialogCompletedShow dialog on the terminal.
showSignatureCapture
showSignatureCaptureAsync
showSignatureCaptureCompletedShow signature capture on the terminal.

Additional terminal listener-events​

Listener-eventDescription
requestCompletedOperation started by an asynchronous function has finished.
Applications can use both operation specific completion callback
in combination with this generic completion callback.
terminalStatusChanged The terminal status has changed. The new status can be
retrieved from the TerminalStatus property.