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

[1.x] Trim whitespace for pay link values #121

Merged
merged 1 commit into from
May 28, 2021
Merged

Conversation

driesvints
Copy link
Member

When trailing white spaces occurs on values for the pay link's payload, Laravel will strip these with the TrimStrings middleware and thus the signature verification from Paddle will fail. It's best that we trim all strings before generating the pay link.

Fixes #120

@taylorotwell taylorotwell merged commit 09ad755 into 1.x May 28, 2021
@taylorotwell taylorotwell deleted the fix-whitespace branch May 28, 2021 15:30
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.

TrimStrings middleware breaks signature verification
2 participants