@xsolla/payment-client-core 0.1.14-test18 → 0.1.14-test19
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/esm2020/lib/core/payment/status/save-payment-method-status/save-payment-method-status.service.mjs +11 -4
- package/fesm2015/xsolla-payment-client-core.mjs +10 -3
- package/fesm2015/xsolla-payment-client-core.mjs.map +1 -1
- package/fesm2020/xsolla-payment-client-core.mjs +10 -3
- package/fesm2020/xsolla-payment-client-core.mjs.map +1 -1
- package/lib/core/payment/status/save-payment-method-status/save-payment-method-status.service.d.ts +1 -0
- package/package.json +1 -1
- package/xsolla-payment-client-core-0.1.14-test19.tgz +0 -0
- package/xsolla-payment-client-core-0.1.14-test18.tgz +0 -0
|
@@ -4630,6 +4630,7 @@ class SavePaymentMethodStatusService {
|
|
|
4630
4630
|
this.savedPaymentAccountChangesService = savedPaymentAccountChangesService;
|
|
4631
4631
|
this.nextActionService = nextActionService;
|
|
4632
4632
|
this.checkStatusService = checkStatusService;
|
|
4633
|
+
this.statusChecked = false;
|
|
4633
4634
|
}
|
|
4634
4635
|
async getStatus(params) {
|
|
4635
4636
|
this.statusRequestService.setRequestParams(params);
|
|
@@ -4640,12 +4641,18 @@ class SavePaymentMethodStatusService {
|
|
|
4640
4641
|
if (this.savingFailedOrCancel(statusResponse?.status) || this.savingSuccessful(accountData, statusResponse?.status)) {
|
|
4641
4642
|
return statusResponse.status;
|
|
4642
4643
|
}
|
|
4643
|
-
this.
|
|
4644
|
-
|
|
4645
|
-
|
|
4644
|
+
if (!this.statusChecked) {
|
|
4645
|
+
this.checkStatus(params);
|
|
4646
|
+
statusResponse.status.statusState = StatusEnum.processing;
|
|
4647
|
+
return statusResponse.status;
|
|
4648
|
+
}
|
|
4649
|
+
statusResponse.status.statusState = StatusEnum.error;
|
|
4646
4650
|
return statusResponse.status;
|
|
4647
4651
|
}
|
|
4648
4652
|
checkStatus(params) {
|
|
4653
|
+
if (!this.statusChecked) {
|
|
4654
|
+
this.statusChecked = true;
|
|
4655
|
+
}
|
|
4649
4656
|
this.startWaitingStatusUpdates(params.invoice);
|
|
4650
4657
|
this.statusRequestService.request();
|
|
4651
4658
|
}
|