Previously I used to rely on CloverError to identify the errors that came back from the device.
Example: Start a sale and hit the "back" (cancel) button on the Clover device.
Right now to handle a failed sale response I use the ICloverConnectorListener#onSaleResponse(response)
which is called with a remotepay.SaleResponse
. On that callback I can only identify the error with the response.reason
which is "CANCEL". Previously I'd map that to CloverError.CANCELED
but that is not valid anymore ("CANCEL" !== 'canceled'
), is there anything like the CloverError
I can use now to map the error to a presentable message to the user?