Types

Link copied to clipboard
class AcceptorRejected(message: String, val reason: String) : ToroException

The acceptor (Toro Gateway/Acquirer) rejected the transaction, potentially due to a validation error, or other reason.

Link copied to clipboard

Could not find an asset the SDK requires to perform an operation. For example resetting the device OS but the update files are not present in the application's assets directory.

Link copied to clipboard

Transaction was cancelled in-app by calling toro.cancelTransaction()

Link copied to clipboard
class BadGatewayResponse(val statusCode: Int) : ToroException

The Gateway returned a bad response. This is the fallback exception if the response did not contain a valid rejection message.

Link copied to clipboard

Something went wrong when trying to read the card. The issue may be with the card itself, or the terminal's hardware

Link copied to clipboard
object Companion
Link copied to clipboard

Transaction was cancelled by the customer on the Miura device

Link copied to clipboard
class DeviceBusy(message: String) : ToroException

An action is already in progress on the selected device.

Link copied to clipboard

Unable to connect to the selected device.

Link copied to clipboard

Connection was closed before the action could be completed on the device.

Link copied to clipboard
class DeviceError(message: String) : ToroException

Generic error relating to a Miura device.

Link copied to clipboard
Link copied to clipboard

The action requires a feature that the selected device does not have. For example a touch screen is required when attempting to capture signatures on the Miura device instead of in app.

Link copied to clipboard

Something went wrong while applying a device update during ToroClient.ensureDeviceReady.

Link copied to clipboard
Link copied to clipboard
class GatewayUnavailable(message: String? = null) : ToroException

Did not receive a response from the Gateway.

Link copied to clipboard

Generic error during a magnetic stripe transaction.

Link copied to clipboard

Received unexpected data in a Gateway response.

Link copied to clipboard

Something went wrong during a point to point encryption related operation.

Link copied to clipboard
Link copied to clipboard
class TerminalManagerRejected(message: String, val reason: String) : ToroException

The Terminal Management System (TMS) rejected the StatusReport. A StatusReport is sent when checking for device updates, or when executing a UpdateType.CONFIGURATION_UPDATE or UpdateType.REMOTE_KEY_INJECTION update.

Link copied to clipboard

Fallback exception for when the transaction is aborted and a more specific reason is not known.

Link copied to clipboard

Check you are not calling ToroClient.startTransaction when there is already a transaction in progress.

Link copied to clipboard

Generic error when something goes wrong during the transaction.

Link copied to clipboard

Card was not presented in time and terminal aborted the transaction.

Link copied to clipboard
class UnknownError(message: String, cause: Throwable? = null) : ToroException

Generic fallback error.

Link copied to clipboard

The card that was presented is not supported by the terminal (e.g. not EMV compliant).

Properties

Link copied to clipboard
open val cause: Throwable?
Link copied to clipboard
open val message: String?
Link copied to clipboard
val reason: String? = null