Installation and setup
Requirements
Section titled “Requirements”- CS-Cart and Multi-Vendor 4.17.2 or later.
- Administrator access to the store’s admin panel.
- A Payfast merchant account (merchant ID and merchant key are on your Payfast dashboard) and the security passphrase from Settings in the dashboard. The passphrase must be set before refunds work, and it must be the same in Payfast and in the add-on.
- A Payfast sandbox account for testing (sandbox.payfast.co.za), or the sandbox details Payfast publishes in its documentation.
- A ZAR currency in the store (Administration > Currencies) or ZAR as the main currency.
- A store address that Payfast can reach from the internet (the notification address).
- A cron job on your server (see step 6).
Install the add-on
Section titled “Install the add-on”- Download the
kv_payfast_payments-<version>.zippackage from your Kavio Labs or CS-Cart Marketplace account. - In the admin panel, open Add-ons > Manage add-ons.
- Click the gear button and choose Manual installation, then upload the archive.
- Find Payfast Payments in the list and make sure its status is Active.
- Enter your license key under Settings > License (Kavio Labs downloads) and click Check now.
Connect Payfast
Section titled “Connect Payfast”- Open Orders > Payfast (the add-on page) and the Connection tab, or Add-ons > Manage add-ons > Payfast Payments > Settings and click Connection.
- Choose Sandbox mode and enter the sandbox merchant ID, merchant key and passphrase. Save and click Test connection: a green message means the passphrase is accepted by the Payfast API.
- Nothing has to be entered in Payfast for notifications: the add-on sends its notification address (
notify_url) with every payment. The address is shown on the page for information. - Switch to Live mode and enter your live merchant ID, merchant key and passphrase only after a successful test; test again.
- Open Administration > Payment methods, add a method, choose the processor Payfast and activate it.
- Add the cron job from the settings page (Cron section), every minute is fine. Overlapping runs are prevented.
Multi-Vendor
Section titled “Multi-Vendor”By default the marketplace owner connects one account for all vendors (Marketplace owner mode on). Switch it off to let each vendor connect their own Payfast account in the vendor panel (Connection tab).
Update
Section titled “Update”- Upload the new package the same way. Your settings, credentials and data are kept.
- The add-on adds missing tables and settings by itself on the first request after the update.
See CHANGELOG for what changed in each version.
Uninstall
Section titled “Uninstall”Open Add-ons > Manage add-ons, click the add-on’s gear button and choose Uninstall. By default the payment and refund records, the queued jobs, the connection (stored credentials) and the settings, licence key included, are kept, so you can still refund older orders after installing the add-on again; your payment methods that used Payfast are switched off and linked again when you install the add-on. The log is removed. To delete everything for good, install the add-on, switch on Permanently delete all payment records on uninstall in the settings and uninstall again. Finish open refunds first.
Uninstalling is not the way to update: upload the new package over the installed add-on.