Drupal Commerce

Drupal Commerce is an open source eCommerce framework. Use it to build flexible eCommerce websites and applications based on Drupal. Safe and secure payments by PayFast.

Drupal Commerce


You’ll need a working installation of Drupal Commerce┬ábefore you can integrate with PayFast. Kindly see their website for more information.

See PayFast integration steps


  1. Drupal-7.17 ( http://drupal.org/drupal-7.17-release-notes ) or commerce_kickstart 7.x-2.0-rc4 (http://drupal.org/node/1836498 )
  2. Commerce 7.x-1.4 ( http://drupal.org/node/1819278 )


  1. Download the module from https://github.com/PayFast/mod-drupalcommerce-7/archive/master.zip and extract the contents into a new folder
  2. Move or copy this new folder to your “sites/all/modules” directory
  3. Log in as a privileged user on your Drupal7 site
  4. Navigate to “modules” via the admin menu and enable the module
  5. Navigate to “Payment methods” via the admin menu and
    1. click on “PayFast” under the “Enabled payment method rules”,
    2. then, under “Actions” in the “Elements” block, click on “Enable payment method Payfast”
    3. The sandbox credentials will be filled in automatically
    4. Click save to make test transactions with the sandbox (using the account details under “User account:” on https://www.payfast.co.za/c/std/integration-guide#system)
    5. To make real transactions select “live” and replace the sandbox credentials with your Payfast merchant id and key