Payfast Gateway
Payfast is one of the most popular gateways in South Africa. It’s an off-site gateway that allows donors to give securely and then be returned to your website and displayed a donation receipt. As of version 2.0, the GiveWP Payfast add-on supports recurring donations!
Getting Started with Payfast
In order to accept payments with Payfast using GiveWP you will need to have an active Payfast account, the Payfast GiveWP add-on, and the GiveWP Core plugin installed and activated.
Click here for instructions on installing and activating GiveWP add-ons.
Note: You can always access your add-on purchase receipts, downloads, and licenses from your GiveWP Account dashboard.
After the Payfast add-on is activated, go to GiveWP > Settings and click on the Payment Gateways tab. There you will see the default Payment Gateways (PayPal Standard, Test Payment, and Offline Donations). You should also see Payfast as an option as well. Click on the Payfast checkbox to enable it as an active payment gateway for your website.
Testing Payfast
It’s recommend you test your integration with PayFast prior to going live with it. To do that you can easily sign up for a sandbox here: https://sandbox.payfast.co.za/

Insert the email that you’re going to use for testing. Once it’s inserted you will see:

First create a “Salt Passphrase”, this will need to be added to GiveWP’s options:

When you have create your passphrase copy and paste that and the additional “Merchant ID” and “Merchant Key” keys:

Connecting GiveWP to Payfast for Live Payments
In order for GiveWP to communicate with Payfast you will need to insert the appropriate API keys. Just like we did above we’re going to do the same thing and move the keys over but this time into the LIVE key fields.
The UI should look similar to the screenshots above.
Make sure that once you enter your LIVE keys into the appropriate fields that you take GiveWP out of test mode in order to process live donations.
FAQs
Yes, the Payfast add-on does support recurring donations.
When using Payfast, the Name field is pulled directly from your form title. Because of that, it’s important to ensure that your form title is compatible with Payfast’s standards.
To avoid issues, do not use special characters such as commas, semicolons, dashes, or symbols. We recommend using only letters and numbers in your form titles whenever possible.
It’s important to note that the GiveWP PayFast integration only supports PayFast for South Africa.
PayFast for Pakistan is a different company and requires its own payment gateway integration to work with GiveWP.Tip: Developers who want to integrate PayFast for Pakistan can follow this guide: How to Build a Gateway Add-on for GiveWP.