getIDVDocumentScanProcessStartConfirmation
The getIDVDocumentScanProcessStartConfirmation
event is triggered by the REL-ID SDK before initiating the document scan as part of the identity verification (IDV) workflows. It provides an opportunity for the mobile app to present information to the user and confirm their intent before starting the scan.
🎯 Purpose
To notify the app that a document scan is about to begin, allowing the developer to:
- Show instructions to the user.
- Collect user consent.
- Proceed with document scanning by invoking the corresponding API:
setIDVDocumentScanProcessStartConfirmation
.
🖼️ Recommended User Interface
Display the following messages to the user:
- “We need to verify your identity.”
- “Please scan a valid document like a passport or driver’s license.”
- “Ensure good lighting and avoid glare on the document.”
- A Start or Proceed button, which when clicked, should call the response API.
🧩 Event Parameters
Parameter | Type | Description |
---|---|---|
idvWorkflow | Enum | Indicates the workflow that triggered the scan, such as ActivatedCustomerKYC. |
🛠️ Response API: setIDVDocumentScanProcessStartConfirmation
Description:
This API starts the document scanning process or cancels it based on user input.
Parameters:
Parameter | Type | Description |
---|---|---|
isConfirm | Boolean | true to start scanning; false to cancel and redirect to appropriate flow |
idvWorkflow | Enum | The same workflow enum received in the event |
Error Codes:
Code | Message | Action |
---|---|---|
146 | "IDV identity verification canceled by user" | Show cancellation screen or retry flow |
💡 Developer Actions
Scenario | Developer Action |
---|---|
User agrees | Call setIDVDocumentScanProcessStartConfirmation(true, idvWorkflow) |
User cancels | Call setIDVDocumentScanProcessStartConfirmation(false, idvWorkflow) |
Error occurred | Show appropriate message from RDNAError object |
💻 Code Snippets
React Native
EventEmitter.addListener(
'getIDVDocumentScanProcessStartConfirmation',
getIDVDocumentScanProcessStartConfirmation
);
RdnaClient.setIDVDocumentScanProcessStartConfirmation(true, idvWorkflow, (response) => {});
Flutter
rdna.on(RdnaClient.getIDVDocumentScanProcessStartConfirmation, getIDVDocumentScanProcessStartConfirmation);
rdna.setIDVDocumentScanProcessStartConfirmation(true, idvWorkflow);
Cordova
document.addEventListener(
'getIDVDocumentScanProcessStartConfirmation',
getIDVDocumentScanProcessStartConfirmation,
false
);
com.uniken.rdnaplugin.RdnaClient.setIDVDocumentScanProcessStartConfirmation(
successCallback, errorCallback, [true, idvWorkflow]
);
Native iOS
(void)getIDVDocumentScanProcessStartConfirmation:(RDNAIDVWorkflow)workflow;
(RDNAError*)setIDVDocumentScanProcessStartConfirmation:(BOOL)isConfirm
idvWorkflow:(RDNAIDVWorkflow)workflow;
Native Android
void getIDVDocumentScanProcessStartConfirmation(RDNA.RDNAIDVWorkflow idvWorkflow);
RDNA.RDNAError setIDVDocumentScanProcessStartConfirmation(boolean isConfirm, RDNA.RDNAIDVWorkflow idvWorkflow);
🔁 Next Steps
After a successful document scan, the SDK will trigger the next event:
getIDVConfirmDocumentDetails
: Developer must display scanned details and confirm with user.
Updated 3 months ago