Carbon Terminal
This class provides an implementation of the PaymentTerminal interface. Also this class provides other methods to utilize the PAaS library API.
Parameters
Constructors
Functions
Aborts a transaction in progress. An abort-transaction request is sent to the payment application. If there is no active transaction the request is ignored. If there is an active transaction the payment application will attempt to abort it.
Checks for updates to the payment terminal. Calling this method will start the Application Updater program.
Creates the CustomCardResponse from the Intent.
Creates the Intent that allow the user to perform a read custom card.
Creates the Intent that allows the user to open the maintenance menu in the payment application.
Open the system menu in the payment terminal. The payment terminal will take over the screen and show its System functions menu. When the user exits the menu, response callback is called and the POS application should start the appropriate activity to take over.
Creates an Intent from a TransactionRequest.
Creates an TransactionResponse from a Intent.
Makes the navigation bar disappear.
Show the navigation bar with back and/or home buttons. This method will add the provided buttons to the navigation bar, that means that if the HOME button already been enabled by another activity and the provided button is BACK for this activity, both buttons will be shown. Hiding the navigation bar can be done by using the Android API method View.setSystemUiVisibility with the flags View.SYSTEM_UI_FLAG_HIDE_NAVIGATION and View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY int the application.
Enable/disable the suspend time.
Gets the result of the last completed transaction. The response will contain the same data as the original response to .doTransaction.
Get printer status.
Retrieves the device product text.
Retrieves the device serial number.
Gets the sleep time value.
Gets the suspend time value.
Retrieve the terminal status.
Initialises the payment terminal. Before the payment terminal can be used to process transactions, it has to be initialised. The initialisation process includes contacting the payment processor and downloading the current terminal settings.
Check if suspend time is enabled.
Check if the terminal has a secure or non-secure system.
Notifying the 'application exit' Start payment application when call this function. PAaS library users(paas applications) should send this to the payment app, before exit their applications.
Registers the payment terminal, which involves creating resources needed by the terminal API.
Set the card verification handler.
Set parameter.
Set screen brightness.
Set the sleep time value.
Set the suspend time value.
If a zero amount is provided in the transaction request, this call can be used to update the transaction with an amount.
Starts a new printer job.
Wakeup the system when in sleep mode.
Unregister the payment terminal, which involves freeing the resources used by the terminal API.
Validate the merchant password.