UsbConnectionConfiguration
class UsbConnectionConfiguration(locationId: String, val autoReconnectOnUnexpectedDisconnect: Boolean = false, val usbReaderReconnectionListener: ReaderReconnectionListener? = null) : ConnectionConfiguration
The UsbConnectionConfiguration
object is used to connect to a USB reader (currently DeviceType.CHIPPER_2X, DeviceType.STRIPE_M2 and DeviceType.WISEPAD_3)
Parameters
autoReconnectOnUnexpectedDisconnect
If set to true, Terminal will try to reconnect to your reader.
usbReaderReconnectionListener
You will need to set usbReaderReconnectionListener and being notified by ReaderReconnectionListener.onReaderReconnectStarted when reconnection starts. You will need to listen to ReaderReconnectionListener.onReaderReconnectSucceeded for succeeded reconnection, ReaderReconnectionListener.onReaderReconnectFailed for failed reconnection
Constructors
Link copied to clipboard
constructor(locationId: String, autoReconnectOnUnexpectedDisconnect: Boolean = false, usbReaderReconnectionListener: ReaderReconnectionListener? = null)
Properties
Link copied to clipboard
Link copied to clipboard
When failIfInUse is true, an error will be returned when attempting to connect to a reader that is already collecting a payment
Link copied to clipboard
The ID of the Location that you want this reader to be registered to.
Link copied to clipboard