Skip to content

fix(paypal): Fix map accessing for paypal country code#18405

Merged
david1alvarez merged 1 commit intomainfrom
paypal-fix
Feb 19, 2025
Merged

fix(paypal): Fix map accessing for paypal country code#18405
david1alvarez merged 1 commit intomainfrom
paypal-fix

Conversation

@david1alvarez
Copy link
Copy Markdown
Contributor

@david1alvarez david1alvarez commented Feb 19, 2025

Because:

  • The paypal country code logic is required by finance, but is a Map not a POJO, and can't be accessed via bracket notation

This commit:

  • Fixes this

Closes #FXA-11174

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).
  • [x 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.

@david1alvarez david1alvarez requested a review from a team as a code owner February 19, 2025 21:25
Comment thread packages/fxa-auth-server/lib/payments/paypal/helper.ts Outdated
Because:

* The paypal country code logic is required by finance, but is a Map not a POJO, and can't be accessed via bracket notation

This commit:

* Fixes this

Closes #
@chelsea-lewis
Copy link
Copy Markdown

@david1alvarez Is this ready to merge? Once merged, let's work with Dan to get it up to stage for further verification.

@david1alvarez david1alvarez merged commit f3c065c into main Feb 19, 2025
@david1alvarez david1alvarez deleted the paypal-fix branch February 19, 2025 23:39
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.

4 participants