How do I integrate PayFast with PrestaShop (PrestaShop Cloud)?

How do I integrate PayFast with PrestaShop (PrestaShop Cloud)?

To install the PayFast payment module, do the following:

  1. Download the PayFast addon from the PrestaShop addons site.
  2. Navigate to modules in the admin dashboard of your PrestaShop cloud site.
  3. Click Add New Module in the top-right corner of the screen and follow the prompts.
  4. Select the PayFast addon downloaded in step 1 for upload.
    • If you are not able to select a file for upload you may need to log out of the PrestaShop addons site (navigate to your profile, select Preferences and then Log out of addon account), then repeat the installation process from step 2.
  5. Click the Install to install the module.
  6. Once the module is installed, click Configure below PayFast.
  7. The PayFast options will then be shown, and you will see the module is ready to be tested.
  8. Leave everything as per default and click Save in order to test in sandbox mode.

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 or Instant EFT 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 of the test user will give you exactly the same results as if you had used another payment method.

Going live

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

  1. Log in to the PrestaShop Back Office.
  2. Using the top navigation bar, navigate to Modules.
  3. Click Payments & Gateways to expand the options.
  4. Under PayFast, click Configure.
  5. In the PayFast Settings block, use the following settings:
    • Mode = “Live”
    • Merchant ID = <Login to PayFast -> Integration Page>
    • Merchant Key = <Login to PayFast -> Integration Page>
    • Debugging = Unchecked
  6. Click Save.

    • Related Articles

    • How do I integrate PayFast with PrestaShop (hosted PrestaShop website)?

      In order to use PayFast with PrestaShop, you will need to install the PayFast payment module for PrestaShop, which is provided by PayFast. To install the PayFast payment module, do the following: Download the correct version for your PrestaShop ...
    • How do I upgrade PayFast with PrestaShop?

      To upgrade PayFast with PrestaShop, do the following: Download the payment module from our site. Unzip the module to a temporary location on your computer. Copy the modules folder in the archive to your base PrestaShop folder.
    • Why isn’t my PrestaShop cart being redirected to PayFast?

      Often when the friendly URL’s function is enabled on the PrestaShop installation, some clients reported that the PayFast plugin was broken. The fix for this is to make sure that the permissions on the PayFast module and it’s sub-directories and files ...
    • I upgraded PrestaShop and now 'PayFast' no longer appears as a payment option.

      When upgrading PrestaShop, the PayFast payment module files may be deleted. You simply need to reinstall the module following the installation procedures and the 'PayFast' option will reappear with your previous setting intact.
    • Why can't I upload an addon on my PrestaShop cloud website?

      You will need to register an addon account with PrestaShop in order to download the module. After clicking Add New Module if you are unable to upload the PayFast module you will need to log out of your addons account (navigate to your profile, select ...