@xsolla/payment-client-core 0.2.6 → 0.2.7

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.
@@ -5915,14 +5915,10 @@ class GooglePayService {
5915
5915
  if (!this.checkout) {
5916
5916
  throw new AppError('Google Pay: no checkout data in then');
5917
5917
  }
5918
- const returnUrl = new URL(this.checkout.request.form.fields.returnSuccessUrl);
5918
+ let returnUrl = this.checkout.request.form.fields.returnSuccessUrl;
5919
5919
  const data = this.checkout.request.form.fields;
5920
- if (data.cpf_number) {
5921
- returnUrl.searchParams.append('cpf_number', data.cpf_number.toString());
5922
- }
5923
- returnUrl.searchParams.append('descriptor', data.descriptor);
5924
- returnUrl.searchParams.append('paymentData', JSON.stringify(paymentData));
5925
- this.commonPayProcessingService.emitPayment(returnUrl.toString());
5920
+ returnUrl += `&cpf_number=${data.cpf_number}&descriptor=${data.descriptor}&paymentData=${JSON.stringify(paymentData)}`;
5921
+ this.commonPayProcessingService.emitPayment(returnUrl);
5926
5922
  return checkStatusAction;
5927
5923
  }
5928
5924
  catch (error) {