Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(payments/paypal): convert undefined before request #15484

Merged
merged 1 commit into from
Jun 28, 2023

Conversation

StaberindeZA
Copy link
Contributor

@StaberindeZA StaberindeZA commented Jun 28, 2023

Because

  • objectToNVP converts object properties with undefined values to a string with value undefined. PayPal expects undefined values to be an empty string param.

This pull request

  • Converts object properties with an undefined value to empty string.

Issue that this pull request solves

Closes: # FXA-7886

Checklist

Put an x in the boxes that apply

  • My commit is GPG signed.
  • If applicable, I have modified or added tests which pass locally.
  • I have added necessary documentation (if appropriate).
  • I have verified that my changes render correctly in RTL (if appropriate).

Screenshots (Optional)

Please attach the screenshots of the changes made in case of change in user interface.

Other information (Optional)

Any other information that is important to this pull request.

Sorry, something went wrong.

Verified

This commit was signed with the committer’s verified signature.
vbudhram Vijay Budhram
Because:

* objectToNVP converts object properties with undefined values to a
  string with value undefined. PayPal expects undefined values to be
  an empty string param.

This commit:

* Converts object properties with an undefined value to empty string.
@StaberindeZA StaberindeZA requested a review from a team as a code owner June 28, 2023 14:42
@StaberindeZA StaberindeZA merged commit e793801 into main Jun 28, 2023
@StaberindeZA StaberindeZA deleted the paypal-client-convert-undefined branch June 28, 2023 15:01
@biancadanforth
Copy link
Contributor

IIUC, this is to fix FXA-7886. @StaberindeZA can you confirm?

@StaberindeZA
Copy link
Contributor Author

Yup that is correct. Thank you for following up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants