Gravity Forms and PayFast

Gravity Forms is one of the best form plugins available for WordPress. It is simple to set up forms (simply drag and drop), it is stacked with features (for the more advanced user) and once a visitor has submitted the form, both you and the visitor can get a custom notification/email. There are some external services you can connect your forms to, MailChimp, Aweber, Freshbooks etc., and now PayFast too!

Gravity Forms

In order to use the PayFast extension, you’ll need a working installation of WordPress and the Gravity Forms plugin already installed. The plugin isn’t cheap ($39 for a single site, $199 for a developer’s license), but having access to the features below makes it worth every penny – at least to the “half a million WordPress sites” that are using it.

Features

  • Submissions stored on WP back-end
  • Multi-page forms
  • Drag and drop
  • Limit entries (for promotions)
  • Advanced & pricing fields
  • Scheduled forms
  • Post WP forms from entries

Be sure to check out their features page for a full list.

Installing the PayFast plugin

You can download the plugin from our GitHub page and follow the instructions on our Developers page.

Setting up a form

The form builder is very intuitive, but if you need guidance, read through their documentation page.

Setting up Gravity Forms

After you’ve set up a form, go to the relevant page (or post) and select the Add Form button above the WordPress toolbar.

Add form

 

Setting up the PayFast settings

From the WordPress sidebar, select Forms, Settings, PayFast. Enter your Merchant ID and Merchant Key. These can be found on the Settings page when logged into your PayFast account (we also emailed them to you during registration).

From the sidebar, select Forms, Settings and change the currency to South African rand. It’s also good to enter reCAPTCHA details on this page, as it helps reducing spam/bot submissions of your forms.

From the sidebar, select Forms, PayFast and create a feed.

Gravity Forms PayFast feed

You’ll be able to select if you want Sandbox and Debug mode enabled and you can select the form you created. If you select the First Name, Last Name and Email fields, these will be pre-populated with the buyer’s information on the PayFast engine when they click to pay you.

Gravity Forms PayFast form

 

After the form has been successfully filled in by a visitor (a shopper, customer or new subscriber), they will be taken to the PayFast engine to complete payment to you.

PayFast engine

 

Conclusion

The Gravity Forms builder is a great solution for those looking beyond the scope of what our simple HTML buttons can provide. It’s easy for the average WordPress user to use, yet powerful enough to keep more serious developers happy. With PayFast’s open-source (and free) plugin, even basic license holders can have their payments fulfilled with PayFast (the other add-ons through Gravity Forms is only available for business and developer license holders).

Thanks for reading!