XF 2.2 PayPal issue

Faust

Well-known member
Hello. I do receive some PayPal emails regarding Some issues on my site.

Hi,

Please check your server that handles PayPal Instant Payment Notifications (IPN). IPNs sent to the following URL(s) failed:


https://site.com/payment_callback.php?_xfProvider=paypal


If you don't recognise this URL, you may be using a service provider that is using IPN on your behalf. Please contact your service provider with the above information. If this problem continues, IPNs may be disabled for your account.


Thank you for helping resolve this issue.



Any ideas why I have this issue and how can I fix ?

Thanks.
 
Solution
If nothing is showing up in XF's payment logs, then you need to check the PayPal IPN settings.

First, ensure that it shows up as being enabled. That should be here: https://www.paypal.com/cgi-bin/customerprofileweb?cmd=_profile-ipn-notify Note that the URL entered doesn't hugely matter as we override it explicitly, but the .../payment_callback.php?_xfProvider=paypal URL is good.

Assuming it's enabled, you need to look at the IPN history here: https://www.paypal.com/uk/cgi-bin/webscr?cmd=_display-ipns-history Note that it may only show the last day by default so you need to expand that to a larger date range.

If nothing shows up in the IPN history, that means that PayPal isn't sending IPNs and that's the problem...

Mike

XenForo developer
Staff member
If nothing is showing up in XF's payment logs, then you need to check the PayPal IPN settings.

First, ensure that it shows up as being enabled. That should be here: https://www.paypal.com/cgi-bin/customerprofileweb?cmd=_profile-ipn-notify Note that the URL entered doesn't hugely matter as we override it explicitly, but the .../payment_callback.php?_xfProvider=paypal URL is good.

Assuming it's enabled, you need to look at the IPN history here: https://www.paypal.com/uk/cgi-bin/webscr?cmd=_display-ipns-history Note that it may only show the last day by default so you need to expand that to a larger date range.

If nothing shows up in the IPN history, that means that PayPal isn't sending IPNs and that's the problem. Make sure they're enabled in PayPal. If they are, then that might require PayPal to investigate.

If IPNs are showing, click the "Message ID" on them to get more details on what was sent. Notably, look at the "HTTP response code" and the delivery status/number of retries. What is reported there?
 
Solution

djbaxter

Well-known member
Thank you, @Mike!

Problem solved for us. The actual PayPal account and the settings for that account are managed by another employee of the company that owns the forum in question. It turns out that in trying to solve another issue not related to the forum, she had disabled IPN messages. This happened around the time the forum stopped getting notifications and has now been fixed/reverted/enabled.

We'll know for sure the next time a member purchases an upgrade but that was almost certainly the problem for us.
 
Last edited:

Faust

Well-known member
If nothing is showing up in XF's payment logs, then you need to check the PayPal IPN settings.

First, ensure that it shows up as being enabled. That should be here: https://www.paypal.com/cgi-bin/customerprofileweb?cmd=_profile-ipn-notify Note that the URL entered doesn't hugely matter as we override it explicitly, but the .../payment_callback.php?_xfProvider=paypal URL is good.

Assuming it's enabled, you need to look at the IPN history here: https://www.paypal.com/uk/cgi-bin/webscr?cmd=_display-ipns-history Note that it may only show the last day by default so you need to expand that to a larger date range.

If nothing shows up in the IPN history, that means that PayPal isn't sending IPNs and that's the problem. Make sure they're enabled in PayPal. If they are, then that might require PayPal to investigate.

If IPNs are showing, click the "Message ID" on them to get more details on what was sent. Notably, look at the "HTTP response code" and the delivery status/number of retries. What is reported there?
All sorted. Thanks.
 

snoopy5

Well-known member
If nothing is showing up in XF's payment logs, then you need to check the PayPal IPN settings.

First, ensure that it shows up as being enabled. That should be here: https://www.paypal.com/cgi-bin/customerprofileweb?cmd=_profile-ipn-notify Note that the URL entered doesn't hugely matter as we override it explicitly, but the .../payment_callback.php?_xfProvider=paypal URL is good.

Assuming it's enabled, you need to look at the IPN history here: https://www.paypal.com/uk/cgi-bin/webscr?cmd=_display-ipns-history Note that it may only show the last day by default so you need to expand that to a larger date range.

If nothing shows up in the IPN history, that means that PayPal isn't sending IPNs and that's the problem. Make sure they're enabled in PayPal. If they are, then that might require PayPal to investigate.

If IPNs are showing, click the "Message ID" on them to get more details on what was sent. Notably, look at the "HTTP response code" and the delivery status/number of retries. What is reported there?

Hi,

I also got today that email from PayPal. I checked in my PayPal account and the notification-URL was mydomainname.com/forum/payment_callback.php

IPN is activated.

Strangely, I can see donations still coming through, although PayPal sent me that email.

Shall I change (=add the text) nevertheless the notification URL in my PayPal account to "mydomainname.com/forum/payment_callback.php?_xfProvider=paypal"?
 

Brogan

XenForo moderator
Staff member
The URL shouldn't matter as XF overrides it.

However, site.com/payment_callback.php?_xfProvider=paypal is the actual URL.

If upgrades are still working then ...
 

Brogan

XenForo moderator
Staff member
Have you tried contacting PayPal regarding it?

If IPNs are still working and upgrades are completing successfully then it seems like an issue at their end.
 
Top