osCommerce
Basics
How do I use PayFast with osCommerce?
In order to use PayFast with osCommerce, you will need to install the PayFast payment module for osCommerce which is provided by PayFast.
What are the installation requirements?
- A working osCommerce installation
- PHP cURL extension
- Ask your host if you are not sure if this is available
Installation and Testing
How do I install the PayFast module?
To install the PayFast Website Payments payment module, please follow the instructions below:
- 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 FTP program you use
- If you are concerned about this, rather copy the individual files across as per instructions below
- Login to the osCommerce admin console
- Navigate to Modules → Payment
- Click on “PayFast Website Payments”
- Click “Install” button
- Click “Edit” button
- Enable PayFast and enter necessary details
- Merchant ID
- Merchant Key
- PDT Key
- Click “Update”
After completing these instructions, the module is installed and ready to be used.
How do I copy 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 indiviudally 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/includes/languages/english/modules/payment/payfast.php catalog/includes/modules/payment/payfast.php
How can I test that it is working correctly?
I'm ready to go live! What do I do?
Upgrading
Frequently Asked Questions (FAQs)
Do I need to set the ITN url on my account?
The osCommerce module currently uses PDT and not ITN.
Notwithstanding this though, 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.
Where is my "base osCommerce folder"?
This is the root of your osCommerce 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 osCommerce directory structure.
The base (or root) osCommerce 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 osCommerce folder”.
I get the error "Unable to find the socket transport 'ssl'"!
The problem is that the PHP installation on your server does not have OpenSSL support enabled. This is required in order for your server to communicate securely with PayFast to receive payment information.
You can check this by creating a file called “phpinfo.php” in the root of your website with the following content:
- phpinfo.php
<?php echo phpinfo(); ?>
Once you have done this, browse to the file in your browser. This will output information about your server's PHP installation to the screen. There should be a section entitled “OpenSSL” with a value showing “OpenSSL support = enabled” (Similar to the image below). If you are experiencing this problem, this section will either not be there, or will be set to disabled.
To correct this problem, your hosting provider will need to enable OpenSSL support within PHP.
| Note: | This has nothing to do with an SSL certificate and you don't need an SSL Certificate! If you're hosting provider advises you that you do, they are incorrect and we advise that you ask to speak to someone technical regarding this and potentially direct them to this help resource as well. Failing this, we advise that you move to a different hosting provider. Please see our Solution Providers page in this regard. |
|---|
To enable OpenSSL for PHP, please ask your hosting provider to consult PHP resources on how to achieve this or direct them to the following websites:
- Windows
- Linux
Trace: » c_sharp.net » payfast_vouchers » vb.net » yola » receiving_email_from_payfast » oscommerce


