What's the right way to insert an activity or view into the register payment flow?
My app is mostly a fairly straightforward gift card custom tender. To activate and load a card, I'm creating a variable-price inventory item that the customer pays for, and when payment is complete I need to pass control to an activity to allow the employee to enter card data and load the card.
Right now I'm listening for ACTION_PAYMENT_PROCESSED, but once I instantiate my own activity I'm not sure how to get back to the right place in the register app. If I use ACTION_START_REGISTER with an orderId it seems to take me to the front page of the register ... if I use ACTION_START_PRINT_RECEIPTS it's not bad, but when I return to the register app the order is in the same "not done" state, waiting to print receipts.
There's also some indication that ACTION_PAYMENT_PROCESSED is the wrong thing to do, because it hijacks the register flow.
I think what you need is a custom tender. The merchant presses a button in between the payment process for entering your information and then continues with the payment.
https://docs.clover.com/build/custom-tenders/ However, I am currently also doing research on how to implement this using the examples provided.