Advertising sustains the DA. Ads are hidden for members. Join today

Payfast Ubercart Integration

Last updated on
18 June 2025

Drupal 7 will no longer be supported after January 5, 2025. Learn more and find resources for Drupal 7 sites

Documentation for the Payfast module.

Requirements

Install

Install uc_payfast as you would any standard module. Download the module, unzip/untar and copy to sites/all/modules or sites/[site name]/modules. Then go to the modules page (http://example.com/admin/build/modules) and enable it.

Otherwise if you have access to or use Drush you can install uc_payfast with the following commands:

$ drush dl uc_payfast
$ drush en -y uc_payfast

Configure

To configure Payfast you need to go to the Ubercart payment settings (http://example.com/admin/store/settings/payment/methods) and make sure it is enabled. Then click the expander under the payment methods table to add all of your Payfast details. You can also set your shop to sandbox or live module. Sandbox mode allows you to run test checkouts without spending any money and should only be used while your site is in development. Please note that sandbox is the default mode.

Usage

Once Payfast has been enabled and configured it becomes a payment option on the checkout page. Create a product and checkout :). You will be directed to a Payfast page to insert your credit card details and then redirected back to the originating site to complete your order.

Support

Please leave support queries in the Payfast issue queue.

Help improve this page

Page status: Not set

You can: