Skip to content

Payfast/mod-magento_2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 

Repository files navigation

mod-magento_2

Payfast Magento Module v2.4.1 for Magento 2.4.4+ on PHP 8.1

Copyright (c) 2023 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.

In order to use Payfast with Magento 2, you will need a working Magento installation. To install Payfast follow the below instructions:

  1. Setup ZAR on your Magento site. In the admin panel navigate to 'Stores', and add ZAR under currency Symbols and Rates.

  2. Copy the Payfast app folder to your root Magento folder. This will not override any files on your system.

  3. 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

  4. Log into the admin panel and navigate to 'Stores'>'Configuration'>'Sales'>'Payment Method' and click on Payfast

  5. 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.

  6. Click 'Save Config', you are now ready to test in sandbox, click 'Save Config'.

  7. 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.

  8. Click 'Save Config', you are now ready to process live transactions via Payfast.

Please click here for more information concerning this module.