This is the Payfast module for Drupal Commerce 2.x. Please feel free to contact the Payfast support team should you require any assistance.
You will need Drupal 9 or 10 with the latest version of Drupal Commerce 2 installed.
- Unzip and copy the payfast folder to the /modules/contrib/commerce/modules directory.
- Log into the admin dashboard and install Commerce Payfast on the Extend page.
- Navigate to Commerce -> Configuration -> Payment gateways and click on Add payment gateway.
- Select Payfast and configure as required.
- Click Save.
- In your composer.json add the following under "repositories": [
{ "type": "package", "package": { "name": "payfast", "version": "1.4.0", "type": "drupal-module", "source": { "
url": "https://github.com/Payfast/mod-drupalcommerce.git", "type": "git", "reference": "master" } } },
- In your composer.json add the following under "extra": { "installer-paths": {
"modules/commerce/modules": [ "payfast" ]
- Require the module using composer.
composer require 'payfast:^1.4.0'
Please click here for more information concerning this module.
Please submit pull requests with any tweaks, features or fixes you would like to share.