Appendix B: Objective-C Error Definitions

Errors which are an instance of <Commerce-Opayo/ECLTransactionErrorCode.h> will have the following error codes:

CommerceSDK Initialization

Error Code Definition
ECLUnsecure(9013) Device is jailbroken or rooted, or application is being debugged or tampered with.
ECLSensitiveDataLibraryNotInitialized(9016) Unable to find or initialize CommerceSDK encryption library.

Account Creation

Error Code Definition
ECLCommerceNotInitialized(9014) CommerceSDK has not been initialized yet. Call ECLCommerce:initializeCommerce first.
ECLNoAccount(9008) Account was unable to be created because an invalid parameter was passed in.

TMS Update

Error Code Definition
ECLTmsUpdateFailure(10000) TMS update failed. See ECLError:nestedErrors for more details.
ECLTransactionCardReaderNoneAvailable(5085) Card reader not found. Make sure it is available and already paired.
ECLCardReaderCannotSelect(7005) Card reader could not be selected for use. See ECLError:nestedErrors for more details.

Card Reader Search and Connection

Error Code Definition
ECLCardReaderSearchInProgress(7050) findDevices was called when a search was already in progress.
ECLCardReaderCannotConnect(7003) Card reader could not be connected. See ECLError:nestedErrors for more details.
ECLCardReaderConfigurationUpdateFailed(7051) Card reader configuration update failed. See ECLError:nestedErrors for more details.
ECLCardReaderCannotConfigure(7002) Card reader configuration update could not be applied. See ECLError:nestedErrors for more details.

Transaction Processing

Error Code Definition
ECLIllegalArgument(9003) An invalid parameter was passed in to processTransaction.
ECLTransactionCardReaderNoneAvailable(5085) Card reader not found. Make sure it is available and already paired.
ECLTransactionUnsupportedTransactionType(5010) Tried to use a transaction type that isn't supported.
ECLTransactionFailure(5009) General transaction failure.

Other

Error Code Definition
ECLAccountInvalidCredentials(9009) Credentials provided were invalid.
ECLPinUpdateFailure(10001) Operator PIN update failed. Usual cause is the account is not setup to support operator PIN.
ECLCardReaderUnsupportedFeature(7047) An unsupported feature was tried for the card reader.