Installation
You will need a working Drupal 8 or 9 with the latest version of Drupal Commerce 2 installed.
Manually copy files
- 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>Payments and click on 'new payment gateway'
- Select PayFast and configure as required.
- Click Save.
Using composer
-
In your composer.json add the following under "repositories": [
{ "type": "package", "package": { "name": "payfast", "version": "1.3.0", "type": "drupal-module", "source": { "url": "https://github.com/PayFast/mod-drupalcommerce-8.git", "type": "git", "reference": "master" } } },
-
In your composer.json add the following under "extra": { "installer-paths": {
"modules/commerce/modules": [ "payfast" ]
-
run $ composer require 'payfast:^1.3.0'
Please click here for more information concerning this module.