- Download the correct version for your PrestaShop installation: v1.5-1.6 or v1.7.*
- Unzip the module to a temporary location on your computer.
- Copy the modules folder in the archive to your base PrestaShop folder.
- This should NOT overwrite any existing files or folders and merely supplement them with the PayFast files.
- This is, however, dependent on the FTP program you use.
- If you are concerned about this, rather copy the individual files across as per the instructions below.
- Using your FTP program, ensure that the /modules as well as /modules/payfast directories are set to CHMOD 0755, otherwise, the validation script will not be accessible to set successful payments as paid.
- Delete the install folder in your Prestashop folder.
- Log in to the PrestaShop Back Office console.
- Using the top navigation bar, navigate to Modules Catalog.
- Click Categories and select Other. Alternatively, type PayFast in the search bar and click Search.
- Click Install to install the module.
- Once the module is installed, click Configure below the PayFast name.
- The PayFast options will then be shown, and you will see the module is ready to be tested.
- Leave everything as per default and click Save.
- Set your shipping/ carrier details to your preferred countries/locations for delivery.
- The module is now ready to be tested with the sandbox. To test with the sandbox, use the following login credentials when redirected to the PayFast site:
Copying the individual files across
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 locations within your installation:
modules/payfast/config.xml modules/payfast/logo.gif modules/payfast/payfast.log modules/payfast/payfast.php modules/payfast/payfast.png modules/payfast/payfast_common.inc modules/payfast/payfast_payment.tpl modules/payfast/payfast_success.tpl modules/payfast/validation.php