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: PayPal onboarding with email address that has plus sign #7393

Merged
merged 7 commits into from
Dec 10, 2024

Conversation

jonwaldstein
Copy link
Contributor

@jonwaldstein jonwaldstein commented May 21, 2024

Resolves GIVE-800

Description

The PayPal onboarding query params are not encoded, yet we are handling them as if they were encoded by parsing them. The problematic query param is the merchantId (email address) that could potentially have special character like a + sign. Ideally we would be able to encode that value before parsing it.

This PR does a really simple str_replace on plus signs to convert them to the encoded character.

Note: This has been reported to PayPal and they opened a ticket to investigate on there side. Their response was to handle the special characters on our end.

Affects

Paypal onboarding

Visuals

N/A

Testing Instructions

  • connect to paypal using an email with a plus sign
  • make sure that plus sign persists
  • make sure donations go through as expected

Pre-review Checklist

  • Acceptance criteria satisfied and marked in related issue
  • Relevant @unreleased tags included in DocBlocks
  • Includes unit tests
  • Reviewed by the designer (if follows a design)
  • Self Review of code and UX completed

@jonwaldstein jonwaldstein changed the base branch from develop to master May 21, 2024 21:29
@jonwaldstein jonwaldstein marked this pull request as ready for review June 3, 2024 13:47
Copy link

This PR is stale because it has been open 45 days with no activity. Stale PRs will NOT be automatically closed.

@github-actions github-actions bot added the Stale label Jul 19, 2024
@github-actions github-actions bot removed the Stale label Aug 24, 2024
Copy link

This PR is stale because it has been open 45 days with no activity. Stale PRs will NOT be automatically closed.

@github-actions github-actions bot added the Stale label Nov 17, 2024
Copy link
Member

@kjohnson kjohnson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

@kjohnson
Copy link
Member

kjohnson commented Dec 6, 2024

@github-actions github-actions bot removed the Stale label Dec 7, 2024
@jonwaldstein jonwaldstein changed the base branch from master to develop December 10, 2024 20:51
@jonwaldstein jonwaldstein merged commit fe74928 into develop Dec 10, 2024
20 checks passed
@jonwaldstein jonwaldstein deleted the fix/paypal-email branch December 10, 2024 20:51
Copy link
Member

@rickalday rickalday left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Passed manual QA tests.

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.

3 participants