VirtueMart Forum

VirtueMart 2 + 3 + 4 => Plugins: Payment, Shipment and others => Topic started by: ukfish1 on June 23, 2020, 12:45:30 PM

Title: Paypal IPN
Post by: ukfish1 on June 23, 2020, 12:45:30 PM
joomla: 3.9.19
VM: 3.8.2

We have recently been getting some messages from papal along the lines of:

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

https://www.***************.co.uk/index.php?option=com_virtuemart&view=vmplg&task=notify&tmpl=component&lang=

If you do not recognize 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.


We have checked with the host company who say IPN is enabled.

Also, the last few orders we have received are showing as pending despite payment having been received through PayPal successfully. We are not receiving order notifications from the website for these orders even though in the VM config emails are meant to be sent even when the status of the order is pending.

Also, in the order summary section of VM, the paid section is showing red cross against these orders even though payment has been made.

Any help would be appreciated.

Paul

Title: Re: Paypal IPN
Post by: GJC Web Design on June 23, 2020, 12:58:22 PM
So what has changed?

Have u tried the  https://www.***************.co.uk/index.php?option=com_virtuemart&view=vmplg&task=notify&tmpl=component&lang= url from a browser and seen what the response is?

It should be a 200

What is the status of the IPNs in the paypal IPN history?

Title: Re: Paypal IPN
Post by: ukfish1 on June 23, 2020, 13:09:35 PM
Thanks for getting back to me so quickly.

The only thing that has changed in recent months is we enabled recaptcha as we were getting lots of spam user registrations.

When I click on the link I just get a blank screen.

Sorry, how do I check the status of the IPNs in the PayPal IPN history?

Thanks again

Paul
Title: Re: Paypal IPN
Post by: AH on June 23, 2020, 14:43:23 PM
You have to go through your paypal console

If you cannot see them - then ask PayPal for assistance.

IPN's look like they are being blocked by your hosting service

QuoteWe have checked with the host company who say IPN is enabled.

Hosting companies do not enable this service - they can impact the IPN message by blocking messages - do you have CDN enabled or some strange hosting routing

When you click the link - yous google console to see what response is given
Title: Re: Paypal IPN
Post by: ukfish1 on June 23, 2020, 14:56:37 PM
many thanks. Really appreciate your help

Paul
Title: Re: Paypal IPN
Post by: GJC Web Design on June 23, 2020, 17:43:20 PM
login to your paypal account and then go to https://www.paypal.com/us/cgi-bin/webscr?cmd=_display-ipns-history&nav=0.3.5

there is the history

#########
https://www.***************.co.uk/index.php?option=com_virtuemart&view=vmplg&task=notify&tmpl=component&lang=
the url will always be a blank screen  -- you have to look in the browser console what the return is.. 200 or 500 etc etc

it must be 200
Title: Re: Paypal IPN
Post by: ukfish1 on July 01, 2020, 12:36:47 PM
Hi

Just logged into the PayPal account and I can see that IPN was not even enabled in PayPal for our account. I have enabled it and hopefully all will now work.

Why were things working OK up to a few weeks ago without this enabled though?

Thanks again, Paul

Title: Re: Paypal IPN
Post by: GJC Web Design on July 01, 2020, 12:38:56 PM
enabled or disabled in Paypal makes no difference...
the send from VM forces the IPN no matter what the setting is in PP.

You need to look at the IPN history .. that is the first point of investigation
Title: Re: Paypal IPN
Post by: ukfish1 on July 01, 2020, 12:43:38 PM
is says there is no history as It wasn't enabled.

Now that it is enabled, I will check the history when we have had some more orders.

Thanks

Paul
Title: Re: Paypal IPN
Post by: Jumbo! on July 02, 2020, 19:50:47 PM
You can see the PayPal IPN History in this page - https://www.paypal.com/webscr?cmd=_display-ipns-history

Even if the IPN fails you should be able to see them in the history page.
Title: Re: Paypal IPN
Post by: AH on July 02, 2020, 22:41:39 PM
only if you have the IPN configured (even though it ignores it)

PayPal will not show you the IPN history option without it - even though it is actually there!