IPN Errors Today April 8

PLDZ_Shannon
Contributor
Contributor

I am seeing issues with the IPN today. No changes on our end. Not seeing it reported elsewhere. I am hoping it is not on our end alone. 

Login to Me Too
13 REPLIES 13

VA23
Contributor
Contributor

I am experiencing issues with this as well. The same occurred earlier in the week and then seemed to have resolved itself.

 

The IPN verifications are failing even though they shouldn't be.

 

PayPal - what's going on?

Login to Me Too

ETF2010
Contributor
Contributor

I had the same problem. I found that the resut was being returned with an additional space after VERIFIED.

i.e. it's coming back as "VERIFIED "

Trim the result to and that should fix it for you.

Login to Me Too

VA23
Contributor
Contributor

Trim the result of this? 

$verified = $ipn->verifyIPN();
 
 ... and that fixed the issue for you?
 
For me it seems $verified is actually coming back entirely empty!
Login to Me Too

ETF2010
Contributor
Contributor

The PayPal message body should contain either INVALID or VERIFIED

php example:

<?php
// inspect IPN validation result and act accordingly
if (strcmp ($res, "VERIFIED") == 0) {
// The IPN is verified, process it
} else if (strcmp ($res, "INVALID") == 0) {
// IPN invalid, log for manual investigation
}
?>

However, the message was coming with a space after VERIFIED (i.e. "VERIFIED "). Trim the result to remove that space.

 

Login to Me Too

VA23
Contributor
Contributor

Thanks ETF - you're correct, that's the response back from PayPal, but not the response back from the default verifyIPN method that PayPal provides in the SDK. See the last bit of code from their implementation:

 

// Check if PayPal verifies the IPN data, and if so, return true.
if ($res == self::VALID) {
    return true;
} else {
    return false;
}
 
VALID is just a constant that is = 'VERIFIED'.
 
So you're trimming $res in this example then?
Login to Me Too

PLDZ_Shannon
Contributor
Contributor

Yes! Exactly. I saw some errors around the same hour of the day a few days back that resolved themselves in a short time. This time, they are not resolving on their own. I was thinking they were doing a smoke test/slow rollout the other day and fully committed to it today. Hoping it gets resolved. System Status page showing no issues. 

Login to Me Too

VA23
Contributor
Contributor

What does your verified variable contain so we can compare notes with the above poster?

 

verified should only be returning a boolean, true or false. Not VALID/INVALID I thought?

Login to Me Too

PLDZ_Shannon
Contributor
Contributor

FYI, I run a service, so I get a ton of IPN calls every hour. This is for the same seller. Both around 10:33AM EST. One shows verified, the other Invalid. See attached.

 

 Screen Shot 2022-04-08 at 10.34.26 AM.png

 

Screen Shot 2022-04-08 at 10.33.43 AM.png

Login to Me Too

VA23
Contributor
Contributor

Thanks - yes, same response as you.

Login to Me Too

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.