@xsolla/payment-client-core 0.1.14-test20 → 0.1.14-test21

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.
@@ -4633,10 +4633,15 @@ class SavePaymentMethodStatusService {
4633
4633
  this.statusChecked = false;
4634
4634
  }
4635
4635
  async getStatus(params) {
4636
+ if (this.listenStatusSubscription) {
4637
+ this.listenStatusSubscription.unsubscribe();
4638
+ this.listenStatusService.stopListening();
4639
+ }
4636
4640
  this.statusRequestService.setRequestParams(params);
4637
4641
  this.statusRequestService.request();
4638
4642
  const statusResponse = await firstValueFrom(this.statusRequestService.response$);
4639
4643
  statusResponse.status.isSavePaymentAccount = true;
4644
+ // this.listenStatusService.stopListening();
4640
4645
  const accountData = await this.getPaymentAccountData(params.invoice);
4641
4646
  if (this.savingFailedOrCancel(statusResponse?.status) || this.savingSuccessful(accountData, statusResponse?.status)) {
4642
4647
  return statusResponse.status;
@@ -4654,7 +4659,7 @@ class SavePaymentMethodStatusService {
4654
4659
  this.statusChecked = true;
4655
4660
  }
4656
4661
  this.startWaitingStatusUpdates(params.invoice);
4657
- // this.statusRequestService.request();
4662
+ this.statusRequestService.request();
4658
4663
  }
4659
4664
  async getStatusOld(params) {
4660
4665
  console.log('getStatus', params);