TomatoCart

Open-source, feature-rich shopping cart

Key Features

  • Catalog management
  • RIA based admin panel
  • Product management
  • Customer management

Integration

See PayFast integration

Download the payment module from our site

  1. Unzip the module to a temporary location on your computer
  2. Copy the “admin” and “includes” folders in the archive to your base “TomatoCart” folder
    • This should NOT overwrite any existing files or folders and merely supplement them with the PayFast files
    • This is however, dependent on the FTPprogram you use
    • If you are concerned about this, rather copy the individual files across as per instructions below
  3. Login to the admin section of your TomatoCart installation
  4. Navigate to Start -> Modules -> Payment Modules
  5. Scroll down to the PayFast Website Payments payment method and click the “Install” button to install the module
  6. Once the module is installed, click on “Edit” button.
  7. The PayFast options will then be shown, edit the payment status as required, edit the zones if required, select the sandbox mode, enable the payment module and click “Save”.
  8. The module is now ready to be tested with the Sandbox. To test with the sandbox, use the following login credentials when redirected to the PayFast site:
    • Username: sbtu01@payfast.co.za
    • Password: clientpass

How do I copy the individual files across?

If you are concerned that copying the entire folder from the downloaded module may overwrite files in your installation, rather copy the files from the extracted module individually into your installation.

Be sure to copy the files from the downloaded module to their correspondinglocations within your installation:

The list of files needed in your online installation is as follows:

/admin/includes/modules/payment/payfast.php  
/includes/languages/en_US/modules/payment/payfast.xml
/includes/modules/payment/payfast.php
/includes/modules/payment/payfast_common.inc

How can I test that it is working correctly?

If you followed the installation instructions above, the module is in “test” mode and you can test it by purchasing from your site as a buyer normally would. You will be redirected to PayFast for payment and can login with the user account detailed above and make payment using the balance in their wallet.

You will not be able to directly “test” a credit card, Instant EFT or Ukash payment in the sandbox, but you don”t really need to. The inputs to and outputs from PayFast are exactly the same, no matter which payment method is used, so using the wallet of the test user will give you exactly the same results as if you had used another payment method.

I”m ready to go live! What do I do?

In order to make the module “LIVE”, follow the instructions below:

  1. Login to the admin section of your TomatoCart system
  2. Navigate to Start -> Modules -> Payment Modules
  3. Under PayFast Website Payments, click on the “Edit” link
  4. In the PayFast Settings block, use the following settings:
    • Set Sandbox Mode = “Live”
    • Merchant ID = <Integration Page>
    • Merchant Key = <Integration Page>
  5. Click Save

See Upgrading and FAQs

UPGRADING

Standard Upgrade Procedure

  1. Download the payment module from our site
  2. Unzip the module to a temporary location on your computer
  3. Copy the “modules” folder in the archive to your base “TomatoCart” folder

FREQUENTLY ASKED QUESTIONS (FAQS)

What is the payment flow?

PayFast works on browser redirection and will redirect the user to PayFast for payment after they click the “Confirm Order” button on the Checkout page.

At this stage, the order has NOT been created in OpenCart, but the shopping cart details will be used.

If the payment is CANCELLED during processing on PayFast:

  • The user will be returned to the “Shopping Cart” page to either correct their shopping cart or to choose another payment gateway.

If the payment is SUCCESSFUL through PayFast:

  • The user will be returned to the “Order Confirmation” page
  • The order will be created and will have a status of “Paid”

USEFUL LINKS