Search
Elevate your online presence with The Webster’s Web Design & Google Marketing for SA Trades Businesses and start growing your business with confidence today.
We are here
84 Pinecroft Pl, Phoenix, Durban, 4068
Follow Us
Laptop showing a secure WooCommerce checkout with PayFast payment

How to Set Up PayFast on WooCommerce (Step-by-Step Guide)

PayFast is one of the most popular ways for South African online stores to accept payments. It lets your customers pay by card, instant EFT and several other methods, and the money lands in your PayFast account before you withdraw it to your bank. If your store runs on WooCommerce, connecting PayFast takes about 15 minutes.

This guide walks you through the whole setup: installing the plugin, finding your PayFast details, testing a payment and fixing the problems store owners run into most.

The short answer

  • Install the plugin: in WordPress, go to Plugins, then Add New, search for PayFast and install the official PayFast gateway for WooCommerce.
  • Get your details: log in to PayFast and copy your Merchant ID, Merchant Key and passphrase from your developer settings.
  • Connect: paste them into WooCommerce, then Settings, then Payments, then PayFast, and enable it.
  • Test: use sandbox mode to place a test order before you switch to live payments.

What you need before you start

What Why you need it
A verified PayFast account You can only receive live payments once PayFast has verified your account and bank details
A WooCommerce store The plugin adds PayFast as a payment option at checkout
Your store currency set to South African rand PayFast processes payments in rand, so the store currency must be ZAR
An SSL certificate (the padlock) Customers will not trust a checkout without it, and browsers warn them away
Admin access to WordPress You need it to install the plugin and change payment settings

How to set up PayFast on WooCommerce

Step 1: Check your store currency

Go to WooCommerce, then Settings, then General. Under Currency options, make sure the currency is South African rand (R). Save if you changed it.

Step 2: Install the PayFast plugin

Go to Plugins, then Add New, and search for PayFast. Install and activate the official PayFast payment gateway for WooCommerce. Check the plugin’s details page to make sure it is up to date and compatible with your version of WooCommerce.

Step 3: Find your Merchant ID, Merchant Key and passphrase

Log in to your PayFast dashboard and open your Settings, then Developer Settings. You will find your Merchant ID and Merchant Key there. Set a passphrase (sometimes called a salt passphrase) if you do not have one yet. Keep these details private, and never send them to anyone over WhatsApp or email.

Step 4: Enter the details in WooCommerce

Go to WooCommerce, then Settings, then Payments, and open PayFast. Tick Enable PayFast, then paste in your Merchant ID, Merchant Key and passphrase. The passphrase must match the one in PayFast exactly, including capital letters and spaces.

Step 5: Set the title and description customers see

Change the title to something clear, such as “Pay by card or instant EFT (PayFast)”. Keep the description short and reassuring, for example “You will be taken to PayFast to pay securely.”

Step 6: Test in sandbox mode

Turn on sandbox (test) mode and enter the sandbox details from PayFast’s sandbox site. Place an order on your store, pay with the test details, and check the order moves from Pending payment to Processing. If it does, the connection works.

Step 7: Go live

Switch off sandbox mode, make sure your live Merchant ID, key and passphrase are entered, and save. Place one small real order yourself, then refund or cancel it, so you know the whole process works from start to finish.

Common problems and how to fix them

Problem Likely cause Fix
Orders stay on “Pending payment” after paying PayFast’s payment notification cannot reach your site Check that a security or firewall plugin, or your host, is not blocking PayFast. Exclude the checkout and WooCommerce pages from caching
“Signature mismatch” or similar error Passphrase does not match Copy the passphrase again from PayFast, with no extra spaces, and save
PayFast does not show at checkout Gateway not enabled, or store currency is not rand Enable it under Payments and set the currency to ZAR
Test payments work but live ones fail Sandbox details still in place, or account not verified Turn sandbox off, enter live details and check your verification status in PayFast
Customers abandon at payment Checkout looks untrustworthy or too long Show the padlock, a clear title and simple delivery costs before payment

Tips for a smoother checkout

  • Offer more than one way to pay. Some customers prefer instant EFT, others card. Our guide to Yoco vs PayFast vs Ozow compares the main options.
  • Show delivery costs early. Surprise shipping fees are a top reason people leave at checkout. See our guide to WooCommerce shipping in South Africa.
  • Check fees before you price. PayFast charges a fee per transaction that depends on the payment method. Check the current rates on PayFast’s pricing page and build them into your prices.
  • Keep plugins updated. Payment plugins change when banks and PayFast update their systems. An outdated plugin is a common reason payments suddenly stop working.

Frequently asked questions

Is the PayFast plugin for WooCommerce free?

Yes. The PayFast gateway plugin for WooCommerce is free to install. PayFast charges a fee on each payment you receive, which depends on the payment method. Check PayFast’s pricing page for current rates.

Where do I find my PayFast Merchant ID and Merchant Key?

Log in to your PayFast account and open Settings, then Developer Settings. Your Merchant ID and Merchant Key are listed there, and you can set your passphrase on the same page.

Why are my WooCommerce orders stuck on pending payment?

Usually PayFast’s payment notification cannot reach your website. A security plugin, firewall or caching setting is often blocking it. Exclude the checkout pages from caching and make sure PayFast is not blocked, then test again.

Can I test PayFast before going live?

Yes. Turn on sandbox mode in the WooCommerce PayFast settings and use PayFast’s sandbox details to place test orders. Switch sandbox off and enter your live details when you are ready.

Can PayFast accept payments in other currencies?

PayFast processes payments in South African rand, so your WooCommerce store currency needs to be set to ZAR. Customers paying with foreign cards are charged in rand.

How long does it take to get paid?

Payments land in your PayFast account, and you then pay them out to your bank account. How quickly money reaches you depends on your payout settings and the payment method, so check the details in your PayFast dashboard.

Final thoughts

Setting up PayFast is one of the last steps before your store can take real orders. Install the plugin, copy your details carefully, test in sandbox, then go live with one small real order. If orders get stuck on pending, the cause is almost always something blocking PayFast from talking to your site.

If you would rather have it done for you, The Webster builds WooCommerce online stores from R390 a month, with PayFast set up and tested. Already have a store? Our guide on adding and removing products in WooCommerce covers the next step, or get in touch for help.

Leave a Reply

Your email address will not be published. Required fields are marked *