mod-magento_2.3.0
PayFast Magento Module v1.1.1 for Magento v2.3.0 - 2.3.0
Copyright (c) 2008 PayFast (Pty) Ltd You (being anyone who is not PayFast (Pty) Ltd) may download and use this plugin / code in your own website in conjunction with a registered and active PayFast account. If your PayFast account is terminated for any reason, you may not use this plugin / code or part thereof. Except as expressly indicated in this licence, you may not use, copy, modify or distribute this plugin / code or part thereof in any way.
Please see the URL below for all information concerning this module:
https://www.payfast.co.za/shopping-carts/magento/
In order to use PayFast with Magento 2.3.x you will need a working Magento 2.3.x installation. To install PayFast follow the below instructions:
-
Setup ZAR on your Magento site. In the admin panel navigate to 'Stores', and add ZAR under currency Symbols and Rates.
-
Copy the PayFast app folder to your root Magento folder. This will not override any files on your system.
-
You will now need to run the following commands in the given order:
3.1 php ./bin/magento module:enable Payfast_Payfast
3.2 php ./bin/magento setup:di:compile
3.3 php ./bin/magento setup:static-content:deploy
3.4 php ./bin/magento cache:clean
-
Log into the admin panel and navigate to 'Stores'>'Configuration'>'Sales'>'Payment Method' and click on Payfast
-
Enable the module, as well as debugging. To test in sandbox insert 'test' in the 'server' field and use the following credentials:
Merchant ID: 10000100
Merchant Key: 46f0cd694581a
Leave the passphrase blank and setup the other options as required.
##NB: configure sending of emails by default magento source code does not allow sending of emails when a payment module does a redirect.
-
Click 'Save Config', you are now ready to test in sandbox, click 'Save Config'.
-
Once you are ready to go live, insert 'live' into the 'server' field and input your PayFast credentials. Set debug log to 'No', and the other options as required.
-
Click 'Save Config', you are now ready to process live transactions via PayFast.