Linking on iOS

When Launching Capture Flow , document metadata can be provided, which can define a document type, as well as bank account information, e.g. bank transaction id. This metadata will be used for all documents created as a result of the capture flow.

Steps

  1. Proceed with the steps 1-4, described on Launching Capture Flow page.

  2. Before calling CaptureFlow.Coordinator.start, create the instance of CaptureFlow.DocumentMetadata.

  3. Pass this object to CaptureFlow.Coordinator.start.

  4. Continue with Step 6 of the process

Example

In the following example, we will set the document type to Invoice, and provide account metadata to the CaptureFlow.Coordinator.start function

let metadata = CaptureFlow.DocumentMetadata.Builder(forReceipt: false) // For invoice
    .add(accountNumber: "0123456789") // Provide the account number
    .add(accountTransactionID: "987") // Provide the bank transaction number
    .build()

let coordinator = CaptureFlow.Coordinator(host: self) // Same
coordinator.delegate = self // Same
coordinator.start(metadata: metadata) // The metadata is provided
// ...
}