I'm developing an Android app that utilizes the Clover SDK.
When a user clicks a button in my app, we create a new order, and they are redirected to the Clover register with that specific order.
When they check out, I launch a custom modal on the Pay screen with an "Accept" and "Cancel" button. If the user clicks "Cancel", I would like to cancel the current order and redirect to my application for the flow to restart.
I've tried using resetDevice and OrderConnector.deleteOrder, but the former does not work in clearing out the current order from the register and the latter results in the device displaying a modal that says "The current order has been deleted". The "deleteOrder" method is promising and almost what I want, but the error modal is introducing some weird behavior. On subsequent transactions in my flow, if the user does not manually close the modal when it first appeared, it displays the error modal and the order I created in my app gets lost.
Is there a way to not display this "The current order has been deleted" error message OR a way to cancel the current order?