sonic-widget 1.50.2 → 1.50.3
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 +6 -3
- package/dist/index.js +7 -7
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
Use this script tag to get access to the widget:
|
|
6
6
|
|
|
7
7
|
```html
|
|
8
|
-
<script src="https://cdn.jsdelivr.net/npm/sonic-widget@1.50.
|
|
8
|
+
<script src="https://cdn.jsdelivr.net/npm/sonic-widget@1.50.3/dist/index.min.js"></script>
|
|
9
9
|
```
|
|
10
10
|
|
|
11
11
|
or
|
|
@@ -32,7 +32,7 @@ and adding path in `angular.json`
|
|
|
32
32
|
2. Use this script tag to get access to the widget at initial html page:
|
|
33
33
|
|
|
34
34
|
```html
|
|
35
|
-
<script src="https://cdn.jsdelivr.net/npm/sonic-widget@1.50.
|
|
35
|
+
<script src="https://cdn.jsdelivr.net/npm/sonic-widget@1.50.3/dist/index.min.js"></script>
|
|
36
36
|
```
|
|
37
37
|
|
|
38
38
|
or
|
|
@@ -79,6 +79,7 @@ ngOnInit(): void {
|
|
|
79
79
|
phone: string, // user prospective data
|
|
80
80
|
applicationNo: string, // user prospective data
|
|
81
81
|
isMalay: boolean, //used to change the default language english to malay
|
|
82
|
+
branchId: string, //used to identify the bank branch
|
|
82
83
|
onMessage: function (data) {}, // callback function, when api response message or error or any other actions
|
|
83
84
|
};
|
|
84
85
|
|
|
@@ -114,7 +115,7 @@ ngOnInit(): void {
|
|
|
114
115
|
4. Add a Script tag to the head tag or body tag. And use the latest version.
|
|
115
116
|
|
|
116
117
|
```html
|
|
117
|
-
<script src="https://cdn.jsdelivr.net/npm/sonic-widget@1.50.
|
|
118
|
+
<script src="https://cdn.jsdelivr.net/npm/sonic-widget@1.50.3/dist/index.min.js"></script>
|
|
118
119
|
```
|
|
119
120
|
|
|
120
121
|
5. Next, add the script tag at a necessary place. But add below the widget script.
|
|
@@ -134,6 +135,7 @@ ngOnInit(): void {
|
|
|
134
135
|
phone: string, // user prospective data
|
|
135
136
|
applicationNo: string, // user prospective data
|
|
136
137
|
isMalay: boolean, //used to change the default language english to malay
|
|
138
|
+
branchId: string, // branch id to identify the branch of the bank
|
|
137
139
|
onMessage: function (data) {}, // callback function, when api response message or error or any other actions
|
|
138
140
|
};
|
|
139
141
|
// get the element used in the action button
|
|
@@ -169,6 +171,7 @@ Check with **`data.code`**_
|
|
|
169
171
|
- _**`videoURL`** should pass as a string value as url. It is used to show the video onboard sonic kyc._
|
|
170
172
|
- _**`accountId`** should pass as a string value. It is used to get the JWT token and proceed with the operator account._
|
|
171
173
|
- _**`isMalay`** is used to pass a boolean value ( **`true`** or **`false`** ). To toggle the widget default language english or malay._
|
|
174
|
+
- _**`branchId`** should pass as a string value. It is used to find bank branch available for operator account for onboard sonic kyc._
|
|
172
175
|
- _**`appId`** should pass as a string value. It is used to find an application policy for onboard sonic kyc._
|
|
173
176
|
- _**`userName`** should pass as a string value. It is used to create an application for onboard sonic kyc._
|
|
174
177
|
- _**`userId`** should pass as a string value. It is used to create an application for onboard sonic kyc and to compare your identity with the document._
|