Terminal

Agent.Payments. Terminal

A select number of terminal APIs exposed by the Payments Engine.
Note: This driver implements the Standard Driver Interface found here

Methods

(async) getConfiguration() → {Promise.<Object>}

Retrieve the terminals configuration.

(async) getDeviceInfo() → {Promise.<module:Terminal~DeviceInfo>}

(async) getKSNCRC() → {Promise.<Array.<String>>}

Retrieve the Key KSN CRCs for this terminal.

(async) getSerialNumber()

Retrieve the serial number of the terminal

onAttached(cb, opts)

Register an event listener for the Attached event

Parameters:
Name Type Description
cb function

The callback to call when this event occurs

opts EventEmitterOptions

Event handler configuration options

onConnected(cb, opts)

Register an event listener for the Connected event

Parameters:
Name Type Description
cb function

The callback to call when this event occurs

opts EventEmitterOptions

Event handler configuration options

onDisconnected(cb, opts)

Register an event listener for the Disconnected event

Parameters:
Name Type Description
cb function

The callback to call when this event occurs

opts EventEmitterOptions

Event handler configuration options

onRemoved(cb, opts)

Register an event listener for the Removed event.

Parameters:
Name Type Description
cb function

The callback to call when this event occurs

opts EventEmitterOptions

Event handler configuration options

onUIEvent(cb, opts)

Register an event listener for the UIEvent event.

Parameters:
Name Type Description
cb UIEventCallback

The callback to call when this event occurs

opts EventEmitterOptions

Event handler configuration options

(async) setConfiguration(config)

Set the terminals configuration.

Parameters:
Name Type Description
config Object

The configuration to set.