Copy the 'admin' and 'catalog' folders into the base 'OpenCart' 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 instructions below.

Log into the admin section of your OpenCart installation.

Navigate to the Extensions > Payments page.

Scroll down to the PayFast.co.za payment method and click the 'Install' button to install the module.

Once the module is installed, click the 'Edit' button.

The PayFast options will then be shown, select the payment status for 'completed', 'failed' and 'pending' payments, select the sandbox mode, enable the payment module and click 'Save'.

The module is now ready to be tested with the PayFast Sandbox.

When you are ready to go live, input your PayFast Merchant ID, Key and passphrase (if it is set on your account), and set sandbox to ‘no’.

Click 'Save'.

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:

Testing that it is working correctly

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.