The Retry flow enables users to review and correct their submitted information when verification is partially successful. This feature improves verification success rates by allowing users to fix errors or provide additional information.

Flow Overview

1

Initial Verification

User submits their information through the standard flow (Personal → Document → Review)

2

Partial Success

If verification is partially successful, show the Partial Result screen

3

Retry Option

User can review and update their information through the Retry flow

4

Additional Information

System may request extra data based on specific failure scenarios

Implementation

1const retry = oneSdk.component("form", {
2 name: "RETRY",
3 type: "manual",
4});
5
6// Create failure result component with custom messaging
7const result_fail = oneSdk.component("form", {
8name: "RESULT",
9type: "manual",
10state: 'FAIL',
11title: { label: 'Max attempt reached' },
12descriptions: [
13{ label: 'You have reached all the attempts. Our officer will review your details and get in touch.' },
14{ label: 'Please close the browser' }
15],
16cta: { label: 'Close' }
17});
18
19// Track retry attempts
20let count = 0;
21
22// Handle partial form results
23review.on("form:result:partial", async () => {
24if (count < 2) {
25// Allow retry if under max attempts
26retry.mount("#form-container");
27count += 1;
28} else {
29// Show final error when max attempts reached
30result_fail.mount("#form-container");
31}
32});

Smart Retry Behavior

Best Practices

Retry Limits

Implement a maximum retry count to prevent endless attempts:

1if (retryCount < 2) {
2 partial.mount(appContainer);
3} else {
4 failed.mount(appContainer);
5}
User Experience
  • Clear error messaging
  • Intuitive navigation
  • Progress indication
  • Helpful prompts for additional information

Remember to handle edge cases such as: - Network failures during verification

  • Timeout scenarios - Maximum retry limit reached - Invalid or corrupt document uploads

Common Integration Points

1review.on("form:review:partial", async () => {
2 // Handle partial success scenario
3});
Built with