...
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 these recommendations:
Note |
---|
|
...
Code Block | ||
---|---|---|
| ||
func stopGiniBankSDK() { // After the user has seesseen and potentially correctscorrected the extractions, send the final // cleanup the SDK// whiletransfer passing in the final extraction summary values to Gini which // which iswill 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 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.