Skip to main content

Terminal methods overview

The basic operation modes of terminal function calls are:

  1. Synchronous
    Function calls are blocking and return after the operation has finished. Error code is provided and indicates if request was successful or not.

  2. Asynchronous
    Function call returns immediately after the operation has started successfully. A user-implemented callback function will then be called, after the operation has finished. All callback functions receive an event. The event contains a result_code indicating if there were errors or not. The user-implemented callback function has to be registered with add_listener.

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

Code example for adding a terminal listener:

/*
* Example for adding a terminal status listener
*
* \param[in] terminal Terminal instance
*/
void add_status_listener(ta_object_t terminal) {
ta_object_t listener = ta_object_invalid;
ta_s_terminal_listener_t listener_config;

// clear listener-config
memset(&listener_config, 0, sizeof(listener_config));

// add user-implemented callback to listener-config
listener_config.terminal_status_changed = mylistener_terminal_status_changed;

// optional: add user content to listener,
// pointer will be handed over to all callbacks:
//listener_config.user_pointer = &custom_struct;

// create listener-object
ta_terminal_listener_create(&listener, &listener_config);

// add listener-object to terminal
ta_terminal_add_listener(terminal, listener);

// release listener-object
ta_object_release(listener);
}

/*
* Callback for terminal status changes
*
* Will be called when status of terminal changes.
* \param[in] terminal Terminal instance
* \param[in] user_pointe User-pointer which can be set in the terminal listener
*/
void mylistener_terminal_status_changed(ta_object_t terminal, void *user_pointer) {
// implement your code to process status change here...
//printf(" > listener_terminal_status_changed\n");
}

Main / guide Retail terminal functions​

Sync method
Async method

Completed eventDescription
ta_terminal_activate
ta_terminal_activate_async
activate_completedOpen a user shift.
ta_terminal_application_information
ta_terminal_ application_information_async
application_information_completed Request the list of brands available on the terminal.
ta_terminal_balance
ta_terminal_balance_async
balance_completedForce the EFT Terminal to transmit all transactions to the
host system as well to do the daily closing.
ta_terminal_cancelAborts an open asynchronous Financial Transaction or Non-Financial Transaction request, except for a commit or rollback request, which cannot be cancelled.
ta_terminal_change_settings
ta_terminal_change_settings_async
change_settings_completed Change configuration parameters of the EFT Terminal.
ta_terminal_commit
ta_terminal_commit_async
commit_completedPerform Commit-operation after a successful Transaction call.
ta_terminal_connect
ta_terminal_connect_async
connect_completedInitiates a connection to the EFT Terminal.
ta_terminal_counter_request
ta_terminal_counter_request_async
counter_request_completed Get counter informations from the EFT Terminal.
ta_terminal_dcc_rates
ta_terminal_dcc_rates_async
dcc_rates_completedRequest DCC rates from the EFT Terminal.
ta_terminal_deactivate
ta_terminal_deactivate_async
deactivate_completedClose a user shift.
ta_terminal_disconnect
ta_terminal_disconnect_async
disconnectedInterrupts the connection to the EFT Terminal.
ta_terminal_hardware_information
ta_terminal_hardware_information_async
hardware_information_completed Get hardware information from the EFT Terminal.
ta_terminal_login
ta_terminal_login_async
login_completedActivate a communication session between the ECR and
the terminal.
ta_terminal_logout
ta_terminal_logout_async
logout_completedTerminate an active communication session between the ECR
and the terminal.
ta_terminal_reboot
ta_terminal_reboot_async
reboot_completedForce the EFT Terminal to reboot.
ta_terminal_receipt_request
ta_terminal_receipt_request_async
receipt_request_completed Receive the latest receipt or a list of silent receipts.
ta_terminal_reconciliation
ta_terminal_reconciliation_async
reconciliation_completed Force the EFT Terminal to transmit all financial transactions
to the host system.
ta_terminal_reconfig
ta_terminal_reconfig_async
reconfig_completedForce the EFT Terminal to get the configuration from the service center.
ta_terminal_rollback
ta_terminal_rollback_async
rollback_completedPrevent a transaction from being committed to the transaction
log and generates a technical reversal of the authorization.
ta_terminal_software_update
ta_terminal_software_update_async
software_update_completed Force the EFT Terminal to start a Software Update.
ta_terminal_system_information
ta_terminal_system_information_async
system_information_completed Request system information from the EFT Terminal.
ta_terminal_transaction
ta_terminal_transaction_async
transaction_completedStarts an EFT Terminal Transaction.

Guide Petrol terminal functions​

Sync method
Async method

Completed eventDescription
ta_terminal_init_transaction
ta_terminal_init_transaction_async
init_transaction_completedRetrieve card data for the presented card.

Guide Unattended terminal functions​

Sync method
Async method

Completed eventDescription
ta_terminal_open_reader
ta_terminal_open_reader_async
open_reader_completedOpens the shutter of the card reader.
ta_terminal_amt_adjustmentSend an amount adjustment notification to the terminal during an open transaction. The amount is used as the new amount for the transaction.
ta_terminal_close_maintenance_window
ta_terminal_close_maintenance_window_async
close_maintenance_window_completedProhibits the EFT terminal from performing any triggered maintenance tasks.
ta_terminal_close_reader
ta_terminal_close_reader_async
close_reader_completedCloses the shutter of the card reader.
ta_terminal_commit
ta_terminal_commit_async
commit_completedCommits a transaction after succesful authorization. A lower amount may be commited than the authorized amount.
ta_terminal_eject_card
ta_terminal_eject_card_async
eject_card_completedEjects the card from the card reader.
ta_terminal_hold_commitIncreases the commit timeout.
ta_terminal_open_maintenance_window
ta_terminal_open_maintenance_window_async
open_maintenance_window_completedOpens 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
ta_terminal_balance_inquiry
ta_terminal_balance_inquiry_async
balance_inquiry_completedPerform a balance check of a card/account on the terminal.

Guide Dialog terminal functions​

Sync method
Async method

Completed eventDescription
ta_terminal_open_dialog_mode
ta_terminal_open_dialog_mode_async
open_dialog_mode_completedOpen dialog mode on the terminal.
ta_terminal_close_dialog_mode
ta_terminal_close_dialog_mode_async
close_dialog_mode_completedClose dialog mode on the terminal.
ta_terminal_show_dialog
ta_terminal_show_dialog_async
show_dialog_completedShow dialog on the terminal.
ta_terminal_show_signature_capture
ta_terminal_show_signature_capture_async
show_signature_capture_completedShow signature capture on the terminal.

Additional terminal listener-events​

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