Return Assistant
The Return Assistant feature lets your users view and edit payable items in an invoice. The total amount is the sum of only those items which the user opts to pay. To enable this feature, set returnAssistantEnabled
to true
in the CaptureConfiguration
:
CaptureConfiguration(returnAssistantEnabled = true)
Gini Bank SDK automatically shows the Return Assistant if the invoice contains payable items and updates the extractions returned to your app according to the user’s changes. The amountToPay
extraction is updated to be the sum of items the user decides to pay. It includes discounts and additional charges that might be present on the invoice. The extractions related to Return Assistant are stored in the compoundExtractions
field of the CaptureResult
.