@xsolla/payment-client-core 0.1.14-test13 → 0.1.14-test14
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 +7 -8
- package/fesm2015/xsolla-payment-client-core.mjs +6 -7
- package/fesm2015/xsolla-payment-client-core.mjs.map +1 -1
- package/fesm2020/xsolla-payment-client-core.mjs +6 -7
- package/fesm2020/xsolla-payment-client-core.mjs.map +1 -1
- package/package.json +1 -1
- package/xsolla-payment-client-core-0.1.14-test14.tgz +0 -0
- package/xsolla-payment-client-core-0.1.14-test13.tgz +0 -0
|
@@ -4640,16 +4640,15 @@ class SavePaymentMethodStatusService {
|
|
|
4640
4640
|
const statusResponse = await firstValueFrom(this.statusRequestService.response$);
|
|
4641
4641
|
// const savingFailedOrCancel = statusResponse.status?.titleClass === TitleClass.cancel || statusResponse.status?.titleClass === TitleClass.cancelUser;
|
|
4642
4642
|
// const savingSuccessful = statusResponse.status?.titleClass === TitleClass.done && accountData?.new_account;
|
|
4643
|
-
if (!accountData) {
|
|
4644
|
-
this.startWaitingStatusUpdates(params.invoice);
|
|
4645
|
-
statusResponse.status.statusState = StatusEnum.processing;
|
|
4646
|
-
}
|
|
4647
|
-
// if (!this.savingFailedOrCancel(statusResponse?.status) && !this.savingSuccessful(accountData, statusResponse?.status)) {
|
|
4648
|
-
// // todo is proccessing
|
|
4649
|
-
//
|
|
4643
|
+
// if (!accountData) {
|
|
4650
4644
|
// this.startWaitingStatusUpdates(params.invoice);
|
|
4651
4645
|
// statusResponse.status.statusState = StatusEnum.processing;
|
|
4652
4646
|
// }
|
|
4647
|
+
if (!this.savingFailedOrCancel(statusResponse?.status) && !this.savingSuccessful(accountData, statusResponse?.status)) {
|
|
4648
|
+
// todo is proccessing
|
|
4649
|
+
this.startWaitingStatusUpdates(params.invoice);
|
|
4650
|
+
statusResponse.status.statusState = StatusEnum.processing;
|
|
4651
|
+
}
|
|
4653
4652
|
statusResponse.status.isSavePaymentAccount = true;
|
|
4654
4653
|
return statusResponse.status;
|
|
4655
4654
|
// if (!this.savePaymentMethodStatus) {
|