@ekyc_qoobiss/qbs-ect-cmp 1.5.18 → 1.5.20

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.
@@ -5776,12 +5776,22 @@ const IdentificationComponent = class {
5776
5776
  this.captureRetryCount++;
5777
5777
  }
5778
5778
  }
5779
- componentWillLoad() {
5780
- state.token = this.token;
5779
+ async componentWillLoad() {
5780
+ if (this.token) {
5781
+ state.token = this.token;
5782
+ }
5783
+ if (this.order_id) {
5784
+ state.requestId = this.order_id;
5785
+ sessionStorage.setItem(SessionKeys.RequestIdKey, state.requestId);
5786
+ }
5781
5787
  state.apiBaseUrl = this.api_url;
5788
+ await this.initializeRequest();
5782
5789
  }
5783
5790
  componentWillRender() {
5784
- state.requestId = sessionStorage.getItem(SessionKeys.RequestIdKey);
5791
+ var reqId = sessionStorage.getItem(SessionKeys.RequestIdKey);
5792
+ if (reqId) {
5793
+ state.requestId = reqId;
5794
+ }
5785
5795
  state.flowStatus = sessionStorage.getItem(SessionKeys.FlowStatusKey);
5786
5796
  if (!state.flowStatus) {
5787
5797
  state.flowStatus = 'LANDING';
@@ -196,12 +196,22 @@ export class IdentificationComponent {
196
196
  this.captureRetryCount++;
197
197
  }
198
198
  }
199
- componentWillLoad() {
200
- store.token = this.token;
199
+ async componentWillLoad() {
200
+ if (this.token) {
201
+ store.token = this.token;
202
+ }
203
+ if (this.order_id) {
204
+ store.requestId = this.order_id;
205
+ sessionStorage.setItem(SessionKeys.RequestIdKey, store.requestId);
206
+ }
201
207
  store.apiBaseUrl = this.api_url;
208
+ await this.initializeRequest();
202
209
  }
203
210
  componentWillRender() {
204
- store.requestId = sessionStorage.getItem(SessionKeys.RequestIdKey);
211
+ var reqId = sessionStorage.getItem(SessionKeys.RequestIdKey);
212
+ if (reqId) {
213
+ store.requestId = reqId;
214
+ }
205
215
  store.flowStatus = sessionStorage.getItem(SessionKeys.FlowStatusKey);
206
216
  if (!store.flowStatus) {
207
217
  store.flowStatus = 'LANDING';
@@ -5772,12 +5772,22 @@ const IdentificationComponent = class {
5772
5772
  this.captureRetryCount++;
5773
5773
  }
5774
5774
  }
5775
- componentWillLoad() {
5776
- state.token = this.token;
5775
+ async componentWillLoad() {
5776
+ if (this.token) {
5777
+ state.token = this.token;
5778
+ }
5779
+ if (this.order_id) {
5780
+ state.requestId = this.order_id;
5781
+ sessionStorage.setItem(SessionKeys.RequestIdKey, state.requestId);
5782
+ }
5777
5783
  state.apiBaseUrl = this.api_url;
5784
+ await this.initializeRequest();
5778
5785
  }
5779
5786
  componentWillRender() {
5780
- state.requestId = sessionStorage.getItem(SessionKeys.RequestIdKey);
5787
+ var reqId = sessionStorage.getItem(SessionKeys.RequestIdKey);
5788
+ if (reqId) {
5789
+ state.requestId = reqId;
5790
+ }
5781
5791
  state.flowStatus = sessionStorage.getItem(SessionKeys.FlowStatusKey);
5782
5792
  if (!state.flowStatus) {
5783
5793
  state.flowStatus = 'LANDING';