Call our sales line
08000 484 679
Home > Magento Tips > Sage Pay IP Address Error in Magento

Sage Pay IP Address Error in Magento

Posted on: 11th Nov 2010 By: Adam Moss 3 Comments

A very short post today folks, but one which has caught a lot of people out in recent times (including a few of my colleagues). Those of you who have seen this error when testing your Magento Sage Pay checkout integration, will probably not be sure what the problem is:

Error in payment. Sagepay says: 4020 : Information received from an Invalid IP address.

Presumably at this point you’ve already entered your IP address into the appropriate area in your Sage Pay administration settings. But the problem occurs if you haven’t entered your server’s IP address. If you’ve only entered the IP address of your domain, which is often different to your server IP address, the Sage Pay server will treat the information received as from an invalid source.

So in summary – find out your server’s IP address and log into your Sage Pay account. Go to Settings > Valid IPs

Sagepay Admin

Click ‘Add’ in the bottom-right corner and enter your server’s IP address. That’s all there is to it. Thanks for reading the Magento Blog at Ecommerce Web Design.

By Adam Moss

Adam is Ecommerce Manager and a PHP developer at Creare Group. Adam is responsible for training Magento development within the company. Follow Adam on Twitter: http://twitter.com/adampmoss. - .

3 Responses to “ Sage Pay IP Address Error in Magento ”

  1. Information Recieved From Invalid IP Address Solution, Magento Blog and E-Commerce
    #1 | 16th February 2011

    [...] have blogged about a solution to this error in the past (clicky), however I’ve since learned a nice little trick for discovering your Server’s IP [...]

  2. atomiku
    #2 | 13th February 2012

    I also had the same problem here… I’d like to thank you for taking your time to post about this. I may also add that you can use SagePay in simulator mode to find out the external IP address of your server. Because, you are right… sometimes the IP address can differ from the IP address of the domain. Most people would just ping the domain to get the IP… http://atomiku.com/2012/01/oscommerce-v2-3-1-and-sagepay-direct-error-4020-invalid-ip-address/

    Thank you! :)

  3. Funky
    #3 | 31st July 2012

    Xml<

Post A Comment

Your comments:
Enclose code snippets within the appropriate tags: [php][/php]   [js][/js]   [xml][/xml]   [css][/css]   [html][/html]
E.g: [php]<?php echo "hello world"; ?>[/php]

Search Blog

Follow us on Twitter

Archives

For the record...

Views & opinions in this blog are those of the individual and do not necessarily reflect those of E-commerce Web Design or the Creare Group.