How do I integrate PayFast with Paid Memberships Pro?

How do I integrate PayFast with Paid Memberships Pro?

This module was developed by Paid Memberships Pro, so please visit their website for integration support. You will need to be registered on PayFast to accept payments and get your Merchant ID.

PayFast integration for v1.8.5

The Paid Memberships Pro plugin was developed by Stranger Studios. We simply forked their plugin (up to v1.8.5), adding the ability for visitors to pay for membership using South African rand with PayFast. If you have any questions about the functionality about Paid Memberships Pro, please get in touch with them. If you are having payment integration problems, get in touch with us. You will need to be registered on PayFast to accept payments and get your merchant ID. Register here. For integration with Paid Memberships Pro 1.8.6 please see the instructions below.

1. Download the ZIP file of the latest fork from https://github.com/PayFast/paid-memberships-pro

2. Upload it via the WordPress Dashboard or via FTP to the Plugins folder.

3. Activate the plugin.

4. Follow through the PMP documentation: http://www.paidmembershipspro.com/documentation/ (You’ll need to register for a free account to read all setup documentation.)

5. To configure PayFast, navigate to Memberships > Payment Settings. Enter your Merchant ID and Key.

Please note: Whenever an update is available for the plugin and you update it from within WordPress (or from the developer’s site), it will update to their latest version (i.e. without PayFast payments). To ensure that the plugin stays PayFast-compatible, always download the latest version from our GitHub account. You’ll need to upload the updated files via FTP.

PayFast integration for v1.8.6 – 1.9*

1. Download the module and unzip the module to a temporary location on your computer.

2. Copy the wp-content folder in the archive to your base WordPress folder. This will merge the folders in the PayFast module with your WordPress folders. You will be prompted to overwrite the paymentsettings.php file, select overwrite.

3. At this point it is necessary to add 2 lines of code to the paid-memberships-pro.php file which is in the root directory of the Paid Memberships Pro plugin. Open the file in a text editor and add the following lines of code:

Line 86 : require_once(PMPRO_DIR . '/classes/gateways/class.pmprogateway_payfast.php' );

Line 141 : 'payfast' => __('PayFast','pmpro'),

4. Log in to the administration console of your website.

5. Navigate toMemberships > Payment Settings.

6. Under Payment Settings select Payment Gateway and SSL.

7. Choose PayFast from the Payment Gateway drop-down menu.

8. The PayFast options will then be shown below.

9. Leave everything else as per default and click Save Changes.

10. The module is now ready to be tested in the PayFast Sandbox (Please note: Sandbox does not currently work for subscriptions).

11. When ready to go live input your PayFast Merchant ID and Key (and passphrase if it is set on your PayFast account) and click Save Changes.

12. To setup a subscription, select Recurring Subscription. Currently Paid Memberships Pro can only accept monthly and annual subscriptions through PayFast

  • Please note: If you have auto-renewal settings, this must be set to No. All checkouts will setup recurring billing. It is not advisable to set an expiry date with the set expiry date plugin, rather set the cycles to the required number, or manage the subscription from the PayFast account dashboard.

13. Ensure that subscriptions are enabled on the Integration page (under Settings) on your PayFast Dashboard.

PayFast Add On

To install the PayFast payment module, do the following:

1. Make sure you have the Paid Memberships Pro plugin installed and activated.

2. Install the Add On via Plugins > Add New on the WordPress Dashboard. Or, upload the pmpro-payfast directory to the /wp-content/plugins/ directory of your site.

3. Activate the plugin through the Plugins menu on WordPress.

4. Navigate to Memberships > Payment Settings on your WordPress dashboard to complete the PayFast settings.


    • Related Articles

    • How do I enable recurring billing on Paid Memberships Pro?

      PayFast can accept monthly or annual subscriptions through Paid Memberships Pro. Please only set up memberships with once-off, monthly or annual subscriptions. To enable recurring billing on Paid Memberships Pro, do the following: On a Membership ...
    • How do I integrate PayFast with Events Manager Pro?

      You’ll need a working installation of WordPress with Events Manager Pro before you can integrate with PayFast. Kindly see their website for more information. To install the PayFast module, do the following: Download the PayFast plugin. Upload the ...
    • How do I integrate PayFast with Site.pro?

      This module was developed by Site.pro, so please visit their website for integration support. You will need to be registered on PayFast to accept payments and get your Merchant ID. You will also need a Premium account with Site.pro to be able to use ...
    • How do I integrate PayFast with Drupal Commerce?

      You’ll need a working installation of Drupal Commerce before you can integrate with PayFast. Kindly see their website for more information.  Integration steps for Drupal-7 Commerce: Requirements Drupal 7 (or commerce_kickstart) Commerce 7 ...
    • How do I integrate PayFast with RSForm!Pro?

      This module was developed by RSJoomla!, so please visit their website for integration support. You will need to be registered on PayFast to accept payments and get your Merchant ID.