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

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

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
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.

1 participant