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.

Getting Started with PayFast

In order to accept payments with PayFast using Give you will need to have an active PayFast account, the PayFast Give add-on, and the Give Core plugin installed and activated.

Click here for instructions on installing and activating Give add-ons.

Note: You can always access your add-on purchase receipts, downloads, and licenses from your Give Account dashboard.

After the PayFast add-on is activated, go to “Donations > 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/

The PayFast sandbox log in page
The PayFast sandbox log in page

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

Inside the PayFast sandbox

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

Enter a passphrase and save it for entering into Give’s gateway options.

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

Copy and paste keys from PayFast into Give’s PayFast gateway options

Connecting Give to PayFast for Live Payments

In order for Give 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 Give out of test mode in order to process live donations.