Is it possible to hide the void transaction button on the Register payments screen? I see there is an intent - EXTRASHOWVOID_BUTTON which determines whether or not to show the Void Transaction button. I tried starting the pay activity and passing in this intent extra but the void button still appears.
The reason I'm trying to hide it is because I need to send a request to my server when an order is completed and I'm having difficulty determining exactly when an order is completed and paid for. The Android sdk only sets the status of an order to 'open' or 'locked' and the 'paid' status is not used.
I'm listening for ACTIONPAYMENTPROCESSED broadcasts which tell me when a payment has been attached to the order (OnOrderUpdateListener2.onPaymentProcessed() gives me this information also). At this point if the user presses the 'Done' button the Intents.ACTIONV1PAYBUILDHIDE broadcast is fired and this would be a good place to send the request to my server as I can check what payments have been made and as Mike suggested in devask[dot]clover[dot]com/question/2305 use OrderCalc.getTotal() to get the lineitem total. However if the user did not press the 'Done' button and instead pressed the 'Home' button the Intents.ACTIONV1PAYBUILDHIDE broadcast is fired also. The user can then re-open the Register app and press the void transaction button.
Would anyone have any idea of determining when an order is totally complete and the user has paid in full or failing that how to hide the void transaction button?
Thanks for your time,