> For the complete documentation index, see [llms.txt](https://docs.stacklii.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.stacklii.com/internal-integrations/payments/payfast.md).

# PayFast

## Connecting PayFast as Payment Gateway

PayFast is a South African payment processor that uses ZAR (South African Rand) in payments.

To connect, select PayFast from your Payment Provider list. You will then need to log into your PayFast account and retrieve the following information:

* **Merchant ID**
* **Merchant Key**
* **Passphrase**

<figure><img src="/files/EBtNybbubml7fednEagf" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
Even though Passphrase says optional, it is needed to process subscriptions or recurring payments.
{% endhint %}

## What To Do Inside Your PayFast Account

### To Connect Your Account

**To find your Merchant ID and Key after your account has been verified, do the following:**

1. Log in to your PayFast account.
2. Navigate to Account > Personal Information.
3. Your Merchant ID and Key can be found on the top right-hand corner of the page.

<figure><img src="/files/iTBMeLCXGvgN3opXCV1j" alt=""><figcaption></figcaption></figure>

## To Process Recurring Payments with PayFast

To process recurring payments, tokenization has to be enabled.

### **To enable these types of recurring payments, do the following:**

1. Navigate to Settings > Developer Settings.

<figure><img src="/files/hkH68WumA1AFnV6pwrHB" alt=""><figcaption></figcaption></figure>

2. Ensure that a Security Passphrase is set on your account. If this field is blank, please enter a passphrase and click Save. Then copy this passphrase into your Stacklii account settings as mentioned above.

<figure><img src="/files/qxogKQOsZFDN6KyaQJEl" alt=""><figcaption></figcaption></figure>

3. Navigate to Settings > Recurring Billing and toggle  Enable Tokenization to Enabled to activate the setting.

<figure><img src="/files/WdV0JRyFgpUTNYrs5o6e" alt=""><figcaption></figcaption></figure>

For more information on tokenization, refer to our [Tokenisation feature page](https://www.payfast.co.za/features/tokenization). &#x20;


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.stacklii.com/internal-integrations/payments/payfast.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
