I get an 'invalid url' error message when being redirected from Magento to PayFast.

Why do I get an 'invalid url' error message when being redirected from Magento to PayFast?

This is due to testing from a non internet accessible machine (e.g. a local development machine).

Non internet accessible machine

The module will only perform as expected if you are testing from an internet accessible machine (e.g.http://www.mydomain.co.za). It will not work from something like http://localhost or http://my.machine.local.

Ensure that you are testing on an internet accessible machine.


    • Related Articles

    • Why do I get an 'invalid url' error message when being redirected from WHMCS to PayFast?

      This is due to one of two reasons: you are testing from a non internet accessible machine (eg. a local development machine) or you have not setup your URLs in WHMCS correctly. Non internet accessible machine The module will only perform as expected ...
    • What causes an invalid URL error?

      The PayFast system will pick up on ‘local’ or ‘localhost’ in the return, cancel and notify URLs and throw the invalid URL error. This is because it is not possible to test the ITN locally due to no server to server communication. The site needs to be ...
    • On VirtueMart, I get the error message "Direct Access to this location is not allowed".

      You’ll get this error message when there is a mismatch between your version of VirtueMart and version of the PayFast VirtueMart module you have installed. There are three versions of VirtueMart currently in circulation: 2.0.0, 1.1.*, and 1.0.*. They ...
    • How do I integrate PayFast with Magento?

      In order to use PayFast with Magento 2.x, you will need to install the PayFast payment module for Magento which is provided by PayFast.  Due to security updates, it is not recommended to use version 1.9 or below and, unfortunately, PayFast no longer ...
    • Why am I getting a 'currency format invalid' error?

      PayFast only processes transactions in ZAR and does not provide a currency conversion service. This means the base currency of your store and product prices will need to be set to ZAR for us to be able to process the transaction. However, you may ...