In order to use PayFast with osCommerce, you will need to install the PayFast payment module for osCommerce which is provided by PayFast.
Installation requirements
- A working osCommerce installation
Installation and testing
To install the PayFast Website Payments payment module, do the following:
- Download the payment module from our site.
- Unzip the module to a temporary location on your computer.
- Copy and paste the files into your osCommerce installation as they were extracted.
- This should NOT overwrite any existing files or folders and merely supplement them with the PayFast files.
- This is, however, dependent on the FTPprogram you use.
- If you are concerned about this, rather copy the individual files across as per instructions below.
- Log in to the osCommerce admin console.
- Navigate to Modules > Payment.
- Click Install Module on the right-hand side.
- Select PayFast from the list.
- Click Install Module button.
- Click Edit on the right-hand pane.
- Change the value for Enable PayFast to True.
- Scroll down to the bottom of the right-hand pane and click Save.
- The module is now operating in 'test mode' and is ready to be tested with the PayFast 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 corresponding locations within your installation:
The list of files needed in your online installation is as follows:
catalog/ext/modules/payment/payfast/payfast.php
catalog/includes/languages/english/modules/payment/payfast.php
catalog/includes/modules/payment/payfast.php
Going live
In order to make the module “live”, do the following:
- Log in to the osCommerce admin console.
- Using the main menu, navigate to Modules > Payment.
- Select the PayFast payment method.
- Click Edit on the right-hand pane.
- Update the configuration values as detailed below:
- Scroll down to the bottom of the right-hand pane and click Save.
The module is now ready to receive live payments.