In order to use PayFast with WHMCS, you will need to install the PayFast payment module for WHMCS which is provided by PayFast.
To install the PayFast payment module, follow the instructions below:
If you are concerned that copying the entire folder from the downloaded module may overwrite files in your installation, rather copy the files from the extracted module individually into your installation.
Be sure to copy the files from the downloaded module to their corresponding locations within your installation:
The list of files needed in your online installation is as follows:
modules/gateways/payfast.log modules/gateways/payfast.php modules/gateways/payfast_common.inc modules/gateways/callback/payfast.php
In order to make the module “LIVE”, follow the instructions below:
See “Standard Upgrade Procedure”
No. When using the one of our payment modules, the ITN url is set automatically and you do not need to set it on your account manually.
This is due to one of 2 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 if you are testing from an internet accessible machine (eg. 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.
URLs not setup correctly
Many components in the system, including our module, make use of the System URL to generate URLs required.
Navigate to the General tab in the WHMCS admin console and ensure that you have set up all your URLs correctly.
This is most likely due to the fact that the PayFast ITN callback file is not able to be called.
Check file permissions
Ensure that the file permissions of the callback file (/modules/gateways/callback/payfast.php) are set to 644. Setting the permissions differently (e.g. 777) may result in the web server not allowing the file to be called due to security restrictions.
This is the root of your WHMCS installation. Where this is, depends on what system you are using and where you are hosting.
The easiest way to find this though would be to look for the WHMCS directory structure.
The base (or root) WHMCS folder will look similar to the image shown below.
Simply find the folder in your installation which looks similar to this structure and that will be your “base WHMCS folder”.