How to navigate to display order screen after timeout event in POS Xstore to Clover mini device integration flow?
This is regarding Xstore to Clover mini device integration flow.When we get the timeout event on clover mini device, then after pressing OK button it is going directly navigating back to Welcome screen but here we need to bring back to Display order screen as per our requirement.
Also when we press cancel button present on swipe screen it is going back to welcome screen but we need to go to display order screen.
How can we achieve these from our side and if its not doable from our side then how can we do this?
Let's use a cloverConnector.sale() as an example. Assuming that you are using SaleRequest#setDisableRestartTransactionOnFail, transactions that end via timeout or manually hitting cancel will send a SaleResponse to the onSaleResponse listener with a "cancel" ResultCode. You write a check -SaleResponse#getResult() == ResultCode.CANCEL - within the callback to call CloverConnector#showDisplayOrder.