-
Notifications
You must be signed in to change notification settings - Fork 194
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
Conversation
This PR is stale because it has been open 45 days with no activity. Stale PRs will NOT be automatically closed. |
This PR is stale because it has been open 45 days with no activity. Stale PRs will NOT be automatically closed. |
There was a problem hiding this 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.
Build for QA, see https://github.com/impress-org/givewp/actions/runs/12203817090. |
There was a problem hiding this 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.
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
Pre-review Checklist
@unreleased
tags included in DocBlocks