I am using Joomla 3.10.2, VM version 3.88 (plugins all 3.8.8) and PHP 7.3.27.
I have recently started receiving error messages from VM Paypal orders. A typical error reads:
*********************
Hello,
An error with your payment method paypal on your store xxxx Shop. The details are logged in the file paypal.3.log.php
. The VirtueMart Team
******************************
The log file paypal.3.log.php shows the following info (I have chaned the IP addresses but the error IP is not included in the following list of accepted IP addrsses):
*******************
2021-09-15 10:59:08 ERROR checkPaypalIps: Error with REMOTE IP ADDRESS = 183.0.81.xxx.
The remote address of the script posting to this notify script does not match a valid PayPal IP address
These are the valid IP Addresses: 183.0.92.ss,183.0.81.tt,183.0.81.yy,183.0.81.zz,The Order ID received was: QMPK070
2021-09-15 10:59:08 MESSAGE plgVmOnPaymentNotification mb_data: Array
*******************************
Can anyone please advise what might be done to fix ths problem? I have red numerous posts on similar subjects but cannot resolve the issue.
Replies appreciated.
These are not secret IP adresses, could You please tell us what IP adresses where used for the IPN calls that were denied?
I am working on a solution to this issue.
Jörgen @ Kreativ Fotografi
OK, sorry. The actual IP addresses were as follows:
2021-09-15 10:59:08 ERROR checkPaypalIps: Error with REMOTE IP ADDRESS = 173.0.81.140.
The remote address of the script posting to this notify script does not match a valid PayPal IP address
These are the valid IP Addresses: 173.0.92.8,173.0.81.33,173.0.81.1,173.0.81.65,The Order ID received was: QMPK070
This is a valid IP adress for Paypal. I will give a solution for this tomorrow. You can easily add this IP for now in your Paypal payment method, but there are ip ranges that right now will not be decoded by the plugin.
I will add this decoding and make sure it gets added to the core.
Jörgen @ Kreativ Fotografi
Thank you so very much. This is wonderful advice and help which I really appreciate.
@ Jörgen .. did u see this post?
http://forum.virtuemart.net/index.php?topic=146573.msg525192#msg525192
Cheers
John
Quote from: GJC Web Design on September 21, 2021, 22:28:29 PM
@ Jörgen .. did u see this post?
http://forum.virtuemart.net/index.php?topic=146573.msg525192#msg525192
Cheers
John
I came across this thread, as I'm looking into the same issue as the OP. In fact my log lists the same IP; and I see it listed on that other thread John linked as one of the "new" IPs PayPal has started using. So if I'm reading everything between these two threads, we should enter all of the new IPs quoted in the second thread into the extra IPs for IPN check field, separated by comas. Is that all correct?
Before finding this thread, I had seen something about updating VM 3.8.8 (which is what I have installed) to 3.8.9; which, if I was reading the information right, might also address this by updating the PayPal plugin, but I can't seem to find the download to install that.
VM3.8.9. for J3.9 is here: http://dev.virtuemart.net/projects/virtuemart/files
http://dev.virtuemart.net/attachments/download/1285/com_virtuemart.3.8.9.10514_package_or_extract.zip
Be sure to test on a copy of the live site first as odd-numbered files are development versions.
QuoteSo if I'm reading everything between these two threads, we should enter all of the new IPs quoted in the second thread into the extra IPs for IPN check field, separated by comas. Is that all correct?
the problem is some of the ips that VM notified are complete blocks which are 100's of ips so manually adding them isn't really feasible.
http://forum.virtuemart.net/index.php?topic=146573.msg525192#msg525192 is generating the 100s by code .. but I haven't tested but assume ok...
this is a change to the plugins/vmpayment/paypal/paypal/helpers/paypal.php file