Skip to end of banner
Go to start of banner

Capture Flow

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 11 Next »

To use the capture flow, do the following:

  1. Request camera access via configuring Info.plist in your project.

  2. Configure GiniBankConfiguration.shared. The implementation example can be found here.

  3. Present the UIViewController. You can find the example here.

  4. Handle the extraction results.
    For handling the extraction results you need to implement GiniCaptureResultsDelegate. Further below you can find more details about the delegate methods and here you can find the implementation example.

  5. Cleanup configuration and resources while also providing the required extraction feedback to improve future extraction accuracy. Follow the recommendations below:

  • Provide values for all necessary fields, including those that were not extracted.

  • Provide the final data approved by the user (and not the initially extracted only).

  • Do cleanup only after TAN verification.

You don’t need to implement any extra steps.

   GiniBankConfiguration.shared.cleanup(paymentRecipient: "Payment Recipient",
                                   paymentReference: "Payment Reference",
                                   paymentPurpose: "Payment Purpose",
                                   iban: "IBAN",
                                   bic: "BIC",
                                   amountToPay: ExtractionAmount(value: 10.242, currency: .EUR))

Check out the example app to see what an integration could look like.


The diagram below shows the interaction between your app and the SDK:

The Gini Capture SDK can return results by invoking the following GiniCaptureResultsDelegate methods:

  • GiniCaptureResultsDelegate.giniCaptureAnalysisDidFinishWith(result: AnalysisResult)

    A document was analyzed and the extractions are available in the properties of the AnalysisResult object.

  • GiniCaptureResultsDelegate.giniCaptureDidCancelAnalysis()

    The user has canceled Gini Capture SDK.

  • GiniCaptureResultsDelegate.giniCaptureDidEnterManually()

    The document analysis finished with no results or an error and the user clicked the Enter manually button on either the No Results Screen or the Error Screen. You should close the Gini Capture SDK and your app will proceed with allowing your user to enter the payment information manually.

  • No labels