Skip to content
This repository has been archived by the owner on Jul 15, 2024. It is now read-only.

Payfast/mod-paid-memberships-pro

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 

Repository files navigation

mod-paid-memberships-pro

This plugin is deprecated

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.

Payfast module v1.3.0 for Paid Memberships Pro v3.0.4

This is the Payfast module for Paid Memberships Pro. Please feel free to contact the Payfast support team should you require any assistance.

Installation

  1. 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 on line 84 add the following code:
   require_once(PMPRO_DIR . "/classes/gateways/class.pmprogateway_payfast.php");
  1. Go to the end of line 186, push enter to create a new line 187, add the following on 187:
   'payfast' => __('Payfast', 'pmpro'),
  1. Log in to the administration console of your website.
  2. Select Memberships from the menu, and go to Payment Settings.
  3. Under Payment Settings select Payment Gateway and SSL.
  4. Choose Payfast from the Payment Gateway drop down menu.
  5. The Payfast options will then be shown below.
  6. Leave everything else as per default and click Save Changes.
  7. The module is now ready to be tested in sandbox (note: sandbox does not currently work for subscriptions).
  8. 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.
  9. 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.
  10. Ensure that subscriptions are enabled on the Integration page (under Settings) on your Payfast account.

Please click here for more information concerning this module.

Collaboration

Please submit pull requests with any tweaks, features or fixes you would like to share.