RemotePay Windows SDK CapturePreAuth shows device is offline
Our team is implementing a Windows Desktop POS integrating with Clover's Remotepay SDK 4.0.
I am testing out preAuth and capturePreAuth. I had success preAuthing the payment and I used the paymentId return from preAuth to perform capture. During my testing in the sandbox environment, I always get the response thru OnCapturePreAuth indicating my "device is currently offline". This is performed right after OnPreAuth event to test and eliminating any intermediate processes accidentally closed the device connection. However, I am still getting this error.
I am wondering if this is due to some settings that I have configure during the PreAuth request that has shut off the device's online status and causing the Capture process to fail. Any helps would be appreciated.
Make sure you are not explicitly closing the connection via Dispose on the Clover Connector. If you aren't then the device may be losing connectivity. You should implement the error (OnDeviceError) and disconnected (OnDeviceDisconnected) handlers on your Clover Connector Listener and see if they are being called. Are you using Secure Network Pay Display or USB Pay Display? You may want to take a look at the device logs (adb logcat) to verify that the device is not losing its connection.