How do I integrate PayFast with Event Espresso?

How do I integrate PayFast with Event Espresso?

In order to use PayFast with WordPress, you need to install Event Espresso. After this step you will need to install the PayFast payment module for Event Espresso, which is provided by PayFast.

Installation requirements

  • A working WordPress and Event Espresso installation
  •  PHP Curl extension ( Ask your host if you are not sure if this is available )

Installation and testing


The PayFast module may be included in your Event Espresso install directory, but if it is not, you can install it by doing the following:
Version 4.6. – 4.9.

  1. Make sure you have a working WordPress and Event Espresso installed.
  2. Download the required PayFast Module for your version of Event Espresso:
  3. Unzip the file.
  4. Using FTP, copy the PayFast file into payment_methods folder of Event Espresso. Alternatively, upload the PayFast.zip folder within the mod-eventespresso directory to your site via the plugins page of your WordPress site.
  5. Event Espresso automatically reads the gateway directory, so it should pick up the new PayFast directory.
  6. Set up ZAR on EE: Navigate to EE general settings > country. Change country to South Africa, change currency code to ZAR, name to Rand, and symbol to R (leave country ISO code as US).
  7. Go into your WordPress admin directory, select Event Espresso in the left-hand menu and then select Payment Settings.
  8. Here you will see a list of all the installed payment gateways. Select PayFast.
  9. Select activate Payfast.
  10. For testing purposes, use the Debugging Feature and the PayFast Sandbox.
  11. The module is now ready to be tested with the PayFast Sandbox. To test with the sandbox, use the following login credentials when redirected to the PayFast site:

Going live

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

  1. Log in to the WordPress Administrator console.
  2. Using the main menu, navigate to Event Espresso > Payment Settings > PayFast Settings.
  3. In the right-hand tab, change the configuration values as below:
    • PayFast Sandbox and Debugging set to no
    • Change the Merchant ID = Available on your Integration Page on the PayFast website
    • Change the Merchant Key = Available on your Integration Page on the PayFast website
  4. Change the other fields as per your preferences.
  5. Click Save.

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