> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.weblium.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# Connecting PayFast as a payment method

PayFast is an online payment processing service for South African merchants of all sizes. PayFast allows merchants (individuals, businesses, and charities) to accept secure payments from online buyers by offering a variety of payment methods, including credit cards, Instant EFT, Masterpass, mobicred, SCode, RCS store cards, MoreTyme, and debit cards. Without the need of a merchant account, a PayFast account can be activated within 24 hours and incurs no monthly or setup fees.

||| ${color}[#F97700](Important:) Payment methods are available on websites with paid and Trial subscriptions.

# Connecting PayFast to your online store

1. [Sign up](https://payfast.io/paygate-signup/) for a new account or [log in](https://payfast.io/login-portals/) to an existing one.

2. After you complete the registration process and get your business account, log in there.
Your credentials, which you need to specify in your Weblium account, can be found at the bottom left corner of the main account page: the **Merchant ID**, **Merchant Key**, and **Passphrase** (Security signature):
![](https://storage.crisp.chat/users/helpdesk/website/fa84b4d83a50e800/payfast-1_1ota0hb.png)

3. Go to the **Your Store** section, then to the **Payment methods** subsection in your site settings on Weblium, and click on the **Add** button next to **PayFast**:
![](https://storage.crisp.chat/users/helpdesk/website/fa84b4d83a50e800/payfast-2_29do5u.png)

4. Paste your **Merchant ID ①**, **Merchant Key ②**, and **Passphrase ③** (Security signature) into the appropriate fields:
![](https://storage.crisp.chat/users/helpdesk/website/fa84b4d83a50e800/payfast-3_rw0mmz.png)

5. To the **Success redirect URL ④** and **Failure redirect URL ⑤** fields, you can add links to your custom success and failure pages you had created.

||| ${color}[#F97700](Important:) You should paste the links that start from `https://`.
| ${color}[#1AA900](Tip:) To know how to add pages, check [this guide](https://help.weblium.com/en-us/article/adding-pages-and-subpages-xbuaj2/). You can also learn how to customize a "Thank you" page in [this article](https://help.weblium.com/en-us/article/creating-a-thank-you-page-wc8zfu/).

6. After all the fields are filled in correctly, save the changes:
![](https://storage.crisp.chat/users/helpdesk/website/fa84b4d83a50e800/payfast-4_1nbndt1.png)

| ${color}[#1AA900](Tip:) You can find out more about setting up the integration in [technical documentation](https://developers.payfast.co.za/docs) from PayFast. In addition, feel free to contact their support team for additional assistance if needed by support@payfast.help.    

7. [Publish](https://help.weblium.com/en-us/article/publishing-a-site-tgxmch/) your site for the changes to take effect.

|| ${color}[#FFA800](Note:) The currency in your PayFast account must match the one in your store settings on Weblium. In addition, PayFast only works with ZAR and does not provide a currency conversion service.

###### Deactivating the payment method
If necessary, you can hide the payment system without deleting it.
For that, return to the **Payment methods** section, and in the **Connected payment methods** subsection, turn the switch off:
![](https://storage.crisp.chat/users/helpdesk/website/fa84b4d83a50e800/payfast-5_tmtmza.png)

# Connecting PayFast to work in test mode

You can connect PayFast in test mode to check the payment method's operation without using your bank card.

1. Log in to your test account via [this link](https://sandbox.payfast.co.za/).

| ${color}[#1AA900](Tip:) More information about the test mode can be found in the [documentation](https://developers.payfast.co.za/docs#sandbox) from PayFast.

2. Your test credentials can be found on your main account page:
![](https://storage.crisp.chat/users/helpdesk/website/fa84b4d83a50e800/payfast-6_1tnjxt4.png)

3. Go back to Weblium, activate the **Test mode**, and specify your test credentials instead of your live ones: test **Merchant ID ①**, test **Merchant Key ②**, and test **Salt Passphrase ③** (Security signature):
![](https://storage.crisp.chat/users/helpdesk/website/fa84b4d83a50e800/payfast-7_68jiuh.png)

4. Save changes and [publish](https://help.weblium.com/en-us/article/publishing-a-site-tgxmch/) your website.

5. After setting up the test mode correctly, you will see a payment page similar to this after you click on the **Order** button in the shopping cart:
![](https://storage.crisp.chat/users/helpdesk/website/fa84b4d83a50e800/payfast-8_93txpy.png)