pipwave-ekyc-uikit 1.3.2 → 2.0.0-0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -50,14 +50,26 @@ pw.init({
50
50
  })
51
51
  ```
52
52
 
53
- ### `onFinish {Function} optional`
53
+ ### `onSuccess {Function} optional`
54
54
 
55
- Call back that fires when the eKYC process is done
55
+ Call back that fires when the eKYC process is done.
56
56
 
57
- Example `onFinish` callBack:
57
+ Example `onSuccess` callBack:
58
58
 
59
59
  ```javascript
60
- pw.onFinish(() => {
60
+ pw.onSuccess(() => {
61
+ // do your own handling here
62
+ });
63
+ ```
64
+
65
+ ### `onFailed {Function} optional`
66
+
67
+ Call back that fires when the eKYC process is failed due to maximum number attempts reached.
68
+
69
+ Example `onFailed` callBack:
70
+
71
+ ```javascript
72
+ pw.onFailed((err) => {
61
73
  // do your own handling here
62
74
  });
63
75
  ```