...
Call GiniCapture.cleanup()
after the user sees (and the extractions, potentially corrects ) the extractions them, and uses them to perform an action (for example, a payment transaction). Pass the same values to cleanup()
which the user sees and uses in your UI.
...