@xsolla/payment-client-core 0.2.2 → 0.2.4

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.
@@ -5840,7 +5840,6 @@ class GooglePayService {
5840
5840
  this.checkout = null;
5841
5841
  this.googlePaymentClient = null;
5842
5842
  this.commonPayProcessingService.status$.subscribe((path) => {
5843
- console.log('sendUserBack', path);
5844
5843
  this.sendUserBack(path);
5845
5844
  });
5846
5845
  }
@@ -5851,7 +5850,7 @@ class GooglePayService {
5851
5850
  return this.readyToPay.getValue();
5852
5851
  }
5853
5852
  sendUserBack(path) {
5854
- void this.httpClient.get(path);
5853
+ this.httpClient.get(decodeURI(path), { responseType: 'text' }).subscribe();
5855
5854
  }
5856
5855
  initGooglePayLibrary(data) {
5857
5856
  this.isSandbox = data.isSandbox;
@@ -5917,7 +5916,6 @@ class GooglePayService {
5917
5916
  .getActionData();
5918
5917
  try {
5919
5918
  const paymentData = await this.googlePaymentClient.loadPaymentData(paymentDataRequest);
5920
- console.log('paymentData', paymentData);
5921
5919
  if (!paymentData?.paymentMethodData?.tokenizationData?.token) {
5922
5920
  throw new AppError('Google Pay: token is missing');
5923
5921
  }
@@ -5928,11 +5926,9 @@ class GooglePayService {
5928
5926
  const data = this.checkout.request.form.fields;
5929
5927
  returnUrl += `&cpf_number=${data.cpf_number}&descriptor=${data.descriptor}&paymentData=${JSON.stringify(paymentData)}`;
5930
5928
  this.commonPayProcessingService.emitPayment(returnUrl);
5931
- console.log('return successcheckStatusAction', returnUrl);
5932
5929
  return checkStatusAction;
5933
5930
  }
5934
5931
  catch (error) {
5935
- console.log('error', error);
5936
5932
  if (!this.checkout) {
5937
5933
  throw new AppError(`Google Pay: no checkout data`);
5938
5934
  }
@@ -5944,7 +5940,6 @@ class GooglePayService {
5944
5940
  }
5945
5941
  const returnUrl = this.checkout.request.form.fields.returnFailUrl;
5946
5942
  this.commonPayProcessingService.emitPayment(returnUrl);
5947
- console.log('return failcheckStatusAction', returnUrl);
5948
5943
  return checkStatusAction;
5949
5944
  }
5950
5945
  }