XF 2.2 User Upgrade problem

Greetings,
I've been having a problem with my forum for a while now.
Unfortunately, the user upgrade system via PayPal isn't working properly for me.

After the user has purchased a paid rank, the payment via PayPal goes through, but the user doesn't automatically receive the purchased rank.
I contacted the website host yesterday, and they tried to reproduce the error. Unfortunately, they weren't able to identify the error based on my approach.
The payment log also doesn't show any information about a payment.

Another user said this was due to the PayPal website. I activated the IPN via PayPal and tested two versions of the link. However, the result was always the same.
Example 1: /payment_callback.php
Example 2: /payment_callback.php?_xfProvider=paypal

A few days ago, I completely reinstalled and reconfigured my forum. Until recently, I was using the latest version of Xenforo 2.3.
Since the most recent installation, I've reverted to version 2.2.17 because I was having some compatibility issues with certain mods.

I would be happy if someone could help me with this
 
If XF doesn't receive a callback then it can't process the upgrade.

You will need to check at the PP end and confirm that callbacks are actually being sent.
I don't understand the whole thing.
A few years ago, I just had to connect the PayPal IPN to the callback from the forum, and after that, everything worked.
Currently, I'm faced with a complete mystery. Everything should be set up correctly, and yet it still doesn't work.

Do I need to configure anything else besides the IPN?
The Xenforo2 PayPal (Legacy) function is used.
 

Attachments

  • Screenshot_1.webp
    Screenshot_1.webp
    76.6 KB · Views: 5
So if it's not working there are only so many places where can go wrong:
  1. PayPal is not sending an IPN
  2. Your XenForo is not receiving the IPN
  3. Your XenForo is not processing the IPN
Well unless you've modified XF or done something odd (3) is very unlikely, so chances are you're not getting the IPNs. There are various PayPal documents talking about debugging IPNs - most point you to the IPN history page at https://www.paypal.com/merchantnotification/ipn/history so personally I'd start there - see if PayPal thinks they are sending out IPNs.

If they are then I'd see if I could figure out why XF was not getting them. That would suggest to me that either my web configuration was catching them and sending them elsewhere or maybe I had PayPal's IP range blocked or something. So I'd be investigating those areas. Ultimately you should see the IPN request to the XF endpoint in your webserver logs if you are getting them.

If you're seeing the requests there and are sure XF is receiving them then we're into option 3 territory and your best bet is probably to raise a support ticket with XF outlining the steps you've done and asking for further debugging assistance.

Generally I've found either PayPal is not sending or they are getting blocked by an overzealous firewall or something. We had one client where the IPNs were not working, they did a few "turn it off and on again" twiddles with PayPal and they kicked back in. No one ever did get to the bottom of the problem at PayPal's end.
 
and are sure XF is receiving them

If XF receives a valid IPN it will be in the payment processor log.

The OP has confirmed there is nothing in the log (both on this forum and via ticket), so it's 1 (most likely) or 2.

As I said in my original response in this thread.

If XF doesn't receive a callback then it can't process the upgrade.

You will need to check at the PP end and confirm that callbacks are actually being sent.
 
Back
Top Bottom