void setParameters(string, string, bool, string)

This function initializes the CardEase Mobile framework.

Parameters

Name Description
terminalId string
Terminal ID for this device, provided by CreditCall.
transactionKey string
Transaction key for this device, provided by CreditCall.
isTestMode bool
True, if the device is a development device and should only run test transactions. False, if the device is in production mode and should run live transactions.
currency string
The type of currency to use when running the transaction. See note in remarks for possible values.

Return

True if success, false otherwise.

Remarks

This function must be called at least once after KioWare for Android is launched, but can be called more than once. After calling it, getIsBusy() should be called on a timer until it returns false.

To request a list of valid values for the currency type, call this function with an invalid currency ('XXX'). This will cause the function to log a message to the device logcat with a full list of valid values.