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

PaypalIPN.php - Added missing "User-Agent" string #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mooror
Copy link

@mooror mooror commented Jul 28, 2022

Description

I found recently that my sandbox transactions were all returning INVALID for some reason. After hours of banging my head against the wall checking my code, IPN History logs, Listener logs, etc. I found the following note in the Paypal Documentation

Please ensure you provide a User-Agent header value that describes your IPN listener, such as, PHP-IPN-VerificationScript. For more information, see the User-Agent specification.

Ans after comparing this listener code to the official code found in the IPN Example code repository, I realized that this script was missing that user agent string. So I added it, an boom, the sandbox IPN came back as valid.

Changes

  • Added a "PHP-IPN-Verification-Script" User-Agent string to fix issues with Sandbox system

+ Added a "PHP-IPN-Verification-Script" User-Agent string to fix issues with Sandbox system
@mooror
Copy link
Author

mooror commented Jul 28, 2022

It would be great if a new release could be made for this change so I don't have to use my fork

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.

None yet

1 participant