This repository is no longer supported and has been archived. Please switch to the official plugin Paid Memberships Pro – Payfast Gateway Add On by Paid Memberships Pro.
This is the Payfast module for Paid Memberships Pro. Please feel free to contact the Payfast support team should you require any assistance.
- Unzip the module to a temporary location on your computer.
- 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.
- 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 on line 84 add the following code:
require_once(PMPRO_DIR . "/classes/gateways/class.pmprogateway_payfast.php");
- Go to the end of line 186, push enter to create a new line 187, add the following on 187:
'payfast' => __('Payfast', 'pmpro'),
- Log in to the administration console of your website.
- Select Memberships from the menu, and go to Payment Settings.
- Under Payment Settings select Payment Gateway and SSL.
- Choose Payfast from the Payment Gateway drop down menu.
- The Payfast options will then be shown below.
- Leave everything else as per default and click Save Changes.
- The module is now ready to be tested in sandbox (note: sandbox does not currently work for subscriptions).
- 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.
- To setup a subscription select Recurring Subscription. Currently Paid Memberships Pro can only accept monthly
and
annual subscriptions through Payfast.
- 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.
- Ensure that subscriptions are enabled on the Integration page (under Settings) on your Payfast account.
Please click here for more information concerning this module.
Please submit pull requests with any tweaks, features or fixes you would like to share.