|Error 4020 - Information received from an Invalid IP address|
|Pablo S. Benitez||Posted: 2012-03-08|
One of the most common Sage Pay errors we are asked to solve is the 4020 one:
Error in payment. Sagepay says: 4020 : Information received from an Invalid IP address
Actually, this error has nothing to do with the Sage Pay Suite extension, it means that the IP address where the Magento store runs has not been added to the "My Sage Pay" account being used. Most if the times it's pretty easy to solve, just log into your "My Sage Pay" account then go to "Settings -> Valid IPs" and enter your server's IP address.
If you are unsure what your server's IP address is or Sage Pay is still refusing your IP address you can follow a few easy steps in order to get the exact IP address Sage Pay is being contacted from:
1- Get yourself a free Sage Pay Simulator account here.
2- Go to your Magento Admin site, then goto System->Configuration->Sales ->Sage Pay->Sage Pay Suite [Global] and set "Vendor" to your Simulator vendor
3- Then set the Sage Pay Suite extension to "Simulator" Mode, you can do this either in "Sage Pay Suite [SERVER Integration]" or "Sage Pay Suite [DIRECT Integration]" section
4- Save settings and the refresh cache
5- Try a new order, you'll still get the 4020 error, but this time Sage Pay will echo back the IP address
If you still experience issues you'll have to email Sage Pay support, include your vendor name, and a screenshot of the alert box showing the 4020 error and the IP address returned by Sage Pay.