Please note: The plugin files for OpenCart version 3 and OpenCart version 2 are not compatible. You will need to install the exact plugin compatible with your OpenCart installation.
To install the PayFast payment module, do the following:
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:
OpenCart 3 admin/controller/extension/payment/payfast.php admin/language/en-gb/extension/payment/payfast.php admin/view/image/payment/payfast.png admin/view/image/payment/payfastlogo.gif admin/view/template/extension/payment/payfast.twig catalog/controller/extension/payment/payfast.php catalog/controller/extension/payment/payfast_common.inc catalog/language/en-gb/extension/payment/payfast.php catalog/model/extension/payment/payfast.php catalog/view/theme/default/image/payfast.png catalog/view/theme/default/image/payfastlogo.gif catalog/view/theme/default/template/extension/payment/payfast.twig
If you followed the installation instructions above, the module is in 'test' mode and you can test it by purchasing from your site as a buyer normally would. You will be redirected to PayFast for payment and can log in with the user account detailed above and make payment using the balance in their wallet.
You will not be able to directly 'test' a credit card, Instant EFT or any other payment method in the sandbox, but you don’t really need to. The inputs to and outputs from PayFast are exactly the same, no matter which payment method is used, so using the wallet will give you exactly the same results as if you had used another payment method.
In order to make the module “live”, do the following: