The first step in setting up the integration is to get the needed information from your PayFast account. Please log in to your PayFast account and go to Settings. There, under Merchant identifiers, you can find your Merchant ID and Merchant Key.
1. How to set up PayFast as a merchant
In order to make the necessary settings for the PayFast integration, please go to your 123FormBuilder account:
My forms → click on the form → Settings → Payments and here, under Payment Processors, you need to select PayFast from the Payment Gateway dropdown, click on Add Payment Gateway and provide your Merchant ID and Merchant Key (which you previously prepared in your PayFast account). Make sure you select Enable on the top-right corner of the PayFast payment processor box.
2. How your users will complete the payment
Once the online order form is completed and submitted, user will be redirected to PayFast in order to make the payment. On PayFast website, there are two cases:
3. How to make test payments
If you don’t want to make a real payment, but just want to test the integration, different settings should be made in your 123FormBuilder account:
a. Settings → Payments → under 1. Merchant Setup → tick Accept payments via PayFast and enter these credentials:
b. Set the Currency – South African Rand
c. Tick Enable Sandbox
Then, once redirected to PayFast, you need to log in under Returning buyer with the following data: