Skip to content

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.

1 participant