How do I make test payments in sandbox mode?

How do I make test payments in sandbox mode?

While setting up your ecommerce store, it's good practice to run some test payments to make sure everything works as expected. We recommend using our sandbox environment to test the payment engine without the need for live money being transferred.

When prompted to enter your merchant details you can use the following default credentials:

  • Merchant ID: 10004002
  • Merchant Key: q1cd2rdny4a53
  • Passphase: payfast

Alternatively, you can create your own details at https://sandbox.payfast.co.za/

To make test payments in sandbox mode, do the following:

1. Enter your email address.  

 2. You will be provided with a sandbox Merchant ID and Key.


 3. Create a 'Salt Passphrase' on the dashboard if needed.


 4. Enter your sandbox credentials into your integration plugin and proceed to make test payments to check your integration is working correctly. 



    • Related Articles

    • How do I test WooCommerce in sandbox mode?

      To allow for testing recurring payments, as well as order updates, do the following: On WordPress, navigate to WooCommerce > Settings > Payments > PayFast. Enter the following sandbox credentials on the Configuration page: Merchant ID: 10004002 ...
    • What is the difference between the sandbox and the live PayFast system?

      The sandbox uses a virtual wallet in place of all the payment methods and will not send any email confirmation. Apart from that, you will be able to test your custom integration, including recurring billing payments, ITNs, order updates on your site, ...
    • Where can I view my token for testing a subscription in the sandbox?

      You will not be able to view it in the sandbox. You must make use of the ITN callback in order to retrieve the token among the return variables after a successful payment.
    • How do I reconcile payments with orders on Shopify?

      Orders on Shopify will automatically update when a successful payment completes on PayFast. This means there is no need for you to manually match payments on your PayFast account with your Shopify orders. Please note: Any references sent to PayFast ...
    • Why do I get a signature mismatch on a tokenization payment?

      If you are testing in sandbox mode, you will need to go to sandbox.payfast.co.za and create your own sandbox account and set a passphrase on there. When using live mode, you will need to ensure that Recurring Billing is enabled on your Payfast ...