@xsolla/payment-client-core 0.2.1 → 0.2.2

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