EdfaPay Logo

Terminal Management

Read terminal details, activate or deactivate the terminal, sync it with the payment server, and unbind it from the device.

Overview

Terminal management functions let you read terminal information, activate or deactivate the terminal, ask the server to sync it, and unbind it from this device. Call them after initiate() has succeeded; before that, onError receives an error (SDK not initialized, or no active session): an EdfaException in Kotlin and Java, an error map with a message in Flutter and React Native.

terminalInfo()

Read the terminal, merchant and device identifiers.

activateTerminal()

Activate terminal for payment processing.

deActivateTerminal()

Deactivate terminal and disable payments.

syncTerminal()

Ask the server to sync this terminal.

Extension.unbindTerminal()

Release the terminal binding from this device.

On docs.edfapay.com

Which operations a terminal has enabled is set in the dashboard: Terminal features, Terminal actions.

Caution

Deactivating a terminal will disable all payment processing until it is reactivated. Ensure this is intentional.

Get Terminal Info

Returns the identifiers of the terminal bound in the current session (TSN, terminal ID, merchant ID, merchant name), the device ID and the SDK version. Call it after initiate() has succeeded; before that, onError receives an SDK not initialized error.

Loading...

Activate Terminal

Activates the terminal bound in the current session. The password is optional; the SDK sends it to the server only when you pass one. onSuccess is called when the server confirms.

Loading...

Deactivate Terminal

Deactivates the terminal bound in the current session. The password is optional; the SDK sends it to the server only when you pass one. onSuccess is called when the server confirms.

Loading...

Caution

Deactivating a terminal will prevent all payment operations until the terminal is reactivated.

Sync Terminal

Sends a sync request for the terminal bound in the current session to the EdfaPay server. onSuccess is called when the server confirms.

Loading...

What Sync Does

syncTerminal() sends one sync request for this terminal to the EdfaPay server. It does not reload the terminal configuration held by the SDK on the device; the SDK downloads that configuration itself: during initiate(), and when the server requests an update during payment processing.

Unbind TerminalNew in v1.0.7

Release the terminal binding from the current device so the terminal can be bound to another device. Available under EdfaPayPlugin.Extension.

On docs.edfapay.com

A terminal can also be unbound in the dashboard: Unbind terminal. After an unbind, signing in with a merchant SDK token shows the terminal picker again.

Loading...

Session Cleared

Unbinding releases this device's terminal on the EdfaPay server, then clears the current session, the terminal configuration and the session's stored data in the SDK. Call initiate() again and bind a terminal before the next payment.

TerminalInfo Model

Properties available on the TerminalInfo object returned from terminalInfo().

PropertyTypeDescription
deviceIdStringUnique device identifier
tsnString?Terminal Serial Number
terminalIdString?Provider terminal ID
merchantIdString?Provider merchant ID
merchantNameString?Merchant display name
versionStringSDK version