How do I integrate PayFast with CubeCart v5 and v6?

How do I integrate PayFast with CubeCart v5 and v6?

In order to use PayFast with CubeCart, you will need to install the PayFast payment module for CubeCart which is provided by PayFast.

Installation requirements

  • A working CubeCart installation
  • PHP cURL extension
    • Ask your host if you are not sure if this is available

To install the PayFast Website Payments payment module, do the following:.

  1. Download the v5 payment module from our site.
  2. Unzip the module to a temporary location on your computer.
  3. Copy and paste the files into your base CubeCart installation as they were extracted.
  4. Log in to the CubeCart admin console.
  5. Navigate to Plugins > Manage Plugins.
  6. Click PayFast (or the Edit logo next to PayFast).
  7. Change values in form:
    Check the Status checkbox
    Click Save to save the configuration.

After completing these instructions, the module is installed and ready to be tested in the sandbox environment (The pre-populated Merchant ID and Merchant Key values are the generic sandbox test credentials).

Going live

Cube Cart v6

In order to make the module ‘live’, do the following:

Log in to the CubeCart admin console.

  1. Navigate to Plugins > Manage Plugins.
  2. Click PayFast (or the Edit logo next to PayFast).
  3. Change values in form:
    1. Set ‘Merchant ID’ to your Merchant ID
    2. Set ‘Merchant Key’ to your Merchant Key
    3. Set ‘Server’ to Live
  4. Click Save to save the configuration.

The module will then be live for transaction processing.

Cube Cart v5

In order to make the module 'live’, do the following:

Log in to the CubeCart admin console.

  1. Navigate to Modules > Payment Methods.
  2. Click the PayFast logo (or Configure next to the PayFast logo).
  3. Change values in form:
    • Set ‘Merchant ID’ to your Merchant ID
    • Set ‘Merchant Key’ to your Merchant Key
    • Set ‘Server’ to Live
  4. Click Edit Config to save the configuration.

The module will then be live for transaction processing.

If you are using version 4 or below, please visit GitHub for instructions. 


    • Related Articles

    • How do I integrate PayFast with UberCart?

      To integrate PayFast with UberCart, do the following: Download the PayFast module and extract the uc_payfast folder from the zip folder. Move or copy the folder called ”uc_payfast” into your /modules/ubercart/payment directory. Log in to the admin ...
    • In CubeCart, the order amount isn't converted from $ to ZAR when redirected to PayFast.

      Unfortunately, the PayFast CubeCart modules do not currently handle currency conversions. Please ensure that you operate your store in ZAR to ensure correct operation.
    • How do I integrate Payfast with Ecwid?

      To integrate Payfast with Ecwid, do the following: Log in to your Ecwid account. Navigate to Settings > Payment. Next to Credit or debit card click Choose payment processor. Select Credit card: Payfast. Enter your Payfast Merchant ID, Merchant Key ...
    • How do I manually transfer the module files for the PayFast integration with CubeCart?

      The files for the module as contained in the zip file you downloaded are as follows: /modules/gateway/PayFast/config.xml /modules/gateway/PayFast/gateway.class.php /modules/gateway/PayFast/payfast.log /modules/gateway/PayFast/payfast_common.inc ...
    • Does Payfast integrate with a Wix website?

      Unfortunately at this time Payfast doesn’t integrate directly with Wix, but there are ways around this. If you need a shopping cart system on your Wix website you can use Ecwid. Ecwid provides shopping cart functionality to platforms like WordPress, ...