@xsolla/payment-client-core 0.1.14-test12 → 0.1.14-test13
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 +8 -3
- package/fesm2015/xsolla-payment-client-core.mjs +7 -2
- package/fesm2015/xsolla-payment-client-core.mjs.map +1 -1
- package/fesm2020/xsolla-payment-client-core.mjs +7 -2
- package/fesm2020/xsolla-payment-client-core.mjs.map +1 -1
- package/package.json +1 -1
- package/xsolla-payment-client-core-0.1.14-test13.tgz +0 -0
- package/xsolla-payment-client-core-0.1.14-test12.tgz +0 -0
|
@@ -4640,11 +4640,16 @@ 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 (!
|
|
4644
|
-
// todo is proccessing
|
|
4643
|
+
if (!accountData) {
|
|
4645
4644
|
this.startWaitingStatusUpdates(params.invoice);
|
|
4646
4645
|
statusResponse.status.statusState = StatusEnum.processing;
|
|
4647
4646
|
}
|
|
4647
|
+
// if (!this.savingFailedOrCancel(statusResponse?.status) && !this.savingSuccessful(accountData, statusResponse?.status)) {
|
|
4648
|
+
// // todo is proccessing
|
|
4649
|
+
//
|
|
4650
|
+
// this.startWaitingStatusUpdates(params.invoice);
|
|
4651
|
+
// statusResponse.status.statusState = StatusEnum.processing;
|
|
4652
|
+
// }
|
|
4648
4653
|
statusResponse.status.isSavePaymentAccount = true;
|
|
4649
4654
|
return statusResponse.status;
|
|
4650
4655
|
// if (!this.savePaymentMethodStatus) {
|