IPN validation
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I've had Paypal IPN processing set up for years and it worked fine. Recently though, processing repeatedly fails. I checked where the glitch was and discovered that the IPN is not getting validated by Paypal. Can someone tell me if there's a bug in any of the following PHP code?
Post back to Paypal to validate:
$header = "POST /cgi-bin/webscr HTTP/1.0\r\n";
$header .= "Content-Type: application/x-www-form-urlencoded\r\n";
$header .= "Content-Length: " . strlen($req) . "\r\n\r\n";
$fp = fsockopen ('www.paypal.com', 80, $errno, $errstr, 30);
Then get the validation string:
fwrite ($fp, $header . 3);
$res = fread ($fp, 8192);
fclose ($fp);
When I check variable $res, it's blank/empty (should be "VERIFIED")
=====
UPDATE: I checked for variable $fp, and it comes back as "Resource id #16"
That doesn't sound right; can anyone tell me what it means and how to fix it if it's wrong?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Good day @SSSdev
Thank you for posting to the PayPal community.
To address the issue you are experiencing, please find below the links to detailed guides that will assist you in resolving the issue:
https://developer.paypal.com/api/nvp-soap/ipn/IPNTesting/#link-ipntroubleshootingtips
If you are still experiencing issues, please create an MTS ticket via the following URL - https://www.paypal-support.com/s/?language=en_US . Please ensure that you provide detailed information and error details when submitting the ticket.
Sincerely,
Kavya
PayPal MTS
If this post or any other was helpful, please enrich the community by giving kudos or accepting it as a solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for this, but I think my issue is more deep-rooted -- out-of-date paypal connection protocol set up many years ago. I've hired a developer to update my IPN script. Hopefully that will resolve it.
Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
- How to validate data existence on PayPal side in REST APIs
- "issue": "NOT_ENABLED_TO_VAULT_PAYMENT_SOURCE" in REST APIs
- Error payment in PayPal Payments Standard
- Compliance violation. flag based on the account origin ? in Sandbox Environment
- Paypal Advanced Payment : 3d error in live in Sandbox Environment