In order to use PayFast with Zen Cart, you will need to install the PayFast payment module for Zen Cart 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:
payfast_itn_handler.php admin/payfast.php admin/includes/boxes/extra_boxes/payfast_customers_dhtml.php admin/includes/languages/english/payfast.php includes/auto_loaders/payfast_itn.core.php includes/init_includes/init_payfast_itn_postcfg.php includes/init_includes/init_payfast_itn_sessions.php includes/languages/english/modules/payment/payfast.php includes/modules/payment/payfast.php includes/modules/payment/payfast/payfast_functions.php
In order to make the module “Live”, follow the instructions below:
The module is now ready to receive live payments.
See “Standard Upgrade Procedure”
See “Standard Upgrade Procedure”
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.
On the Payment Information page (Step 2 of the checkout process), the PayFast option is depicted by a small PayFast logo.
To modify the look of the option, follow these instructions:
NB If you upgrade to a new version of the PayFast module at a later stage, your changes will be overridden! So remember to save your changes before doing so.
Getting the error as detailed below, is most likely due to your currency configuration which is incorrect and the amount is therefore coming through as 0.00.
Our module requires that you use ZAR as your primary currency and that it is configured with the official currency code ZAR (not ZA or some other variation).
Modify this through the Zen Cart admin console on the Localization → Currencies page. Ensure that you have an entry with the following details:
While we don't recommend this at all, you can do this as follows:
/includes/modules/payment/payfast.php
$currency = 'ZAR';
This will set the module to use your non-standard currency code.
NB If you upgrade to a new version of the PayFast module at a later stage, your changes will be overridden! So remember to save your changes before doing so.
This is the root of your Zen Cart 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 Zen Cart directory structure.
The base (or root) Zen Cart 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 Zen Cart folder”.
PayFast works on browser redirection and will redirect the user to PayFast for payment after they click the “Make Payment” button on the Payment page.
Before the browser is redirected to PayFast, all information concerning the order is saved in a PayFast specific table.
If the payment is cancelled during processing on PayFast:
If the payment is successful during processing on PayFast: