Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Your app should clean up the SDK and provide feedback by releasing the capture singleton and providing transfer summary for the extractions that the Gini Bank API Capture delivered. Follow the these recommendations below:

Note
  • 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).

  • Send feedback transfer summary only after TAN verification.

...

Code Block
languageswift
func stopGiniBankSDK() {
    // After the user has seen and potentially corrected the extractions, send the   //final
cleanup the SDK while passing// intransfer thesummary final extraction values to Gini   // which will be used as feedback to improve the future extraction accuracy:
    GiniConfiguration.shared.cleanupsendTransferSummary(paymentRecipient: "Payment Recipient",
                                         paymentReference: "Payment Reference",
                                         paymentPurpose: "Payment Purpose",
                                         iban: "IBAN",
                                         bic: "BIC",
                                         amountToPay: ExtractionAmount(value: 10.242, currency: .EUR))
    // cleanup the capture SDK after sending the transfer summary
    GiniConfiguration.shared.cleanup()
}

We provide a sample test case here to verify that extraction feedback sending transfer summary works. You may can use it along with the example PDF and JSON files as a starting point to write your own test case. The sample test case is based on the Bank API documentation’s recommended steps for testing extraction feedback sending transfer summary. For additional information about feedback transfer summary see the Gini Bank API documentation.