How to Set Up and Test Your PayFast Integration as an Aggregator

How to Set Up and Test Your PayFast Integration as an Aggregator

To ensure a seamless integration with PayFast as an Aggregator, follow these steps to set up and test your account before going live. This guide will walk you through creating a Sandbox account, testing transactions, and configuring your live account.

1. Create and Configure a Sandbox Account
  • Start by creating a Sandbox account. This environment allows you to test your integration without processing real payments.
  • Use the credentials provided for the Sandbox account to configure your payment setup on your staging site. This step ensures you can simulate transactions safely.
2. Test the Checkout and Transaction Flow
  • Perform a test checkout on your staging site. Ensure the payment is routed through the PayFast payment gateway.
  • Verify the flow from your website’s checkout page to PayFast’s payment page.
  • This helps you confirm that the integration between your website and PayFast is functioning as expected.
3. Verify Transactions with the Sandbox Wallet
  • Use the funds in your Sandbox wallet to complete test transactions.
  • Check that order statuses on your website are updated correctly after payment.
  • This step ensures your website is accurately reflecting transaction data.
4. Configure Your Live Account
  • Once you’ve verified your staging setup, proceed to configure your live account credentials. These can be found in the Merchant Dashboard.
  • Complete a live transaction to confirm that the system is working properly in the live environment.
5. Manage Transactions on Your PayFast Dashboard
  • Log in to your PayFast Dashboard to:
    • View transaction details.
    • Process refunds.
    • Download custom reports for your records.