Documentation

You have arrived at our developer documentation. Please make sure to check our extensive list of existing integration options before you continue.

Follow the steps below to integrate with PayFast:

2. Confirm page

This page outlines a list of fields that need to be submitted via an HTML form. These fields will contain all the necessary information needed for PayFast to process a payment.

3. Success page

This page is set by the return_url field in the form that is generated prior to the buyer being redirected to the PayFast payment engine.

4. Cancel page

This page is where buyers are redirected to if they cancel the payment transaction at any stage.

8. Recurring Billing

Introduction The recurring service will allow for merchants to create two methods of recurring payments; one method being a traditional subscription model of a recurring charge on a given date, the other a one-click ad hoc model where the future dates and amounts of payments may be unknown. Subscriptions The buyer who chooses to enter […]

9. API

Introduction PayFast is in the process of rolling out a fully-fledged RESTful API. The first endpoints available will be for the management of subscriptions, with further functionality being released in the near future. Overview All API communications with PayFast take the form of standard HTTP requests. These requests are made against a set of endpoints, […]

9.1 Subscription Payments API Endpoints

URL Composition The API exposes the following endpoints which will allow Merchants the ability to interact with subscriptions on their accounts. URLs to interact with take the following form: https://api.payfast.co.za/[endpoint]/[token]/[action]?testing=true [endpoint]: This should be set to “subscriptions”. [token]: A 36 character alphanumeric string which uniquely identifying a subscription. [action]: This will be the verb describing […]

9.2 Ad Hoc Payments API Endpoints

URL Composition The API exposes the following endpoints which will allow Merchants the ability to interact with subscriptions on their accounts. URLs to interact with take the following form: https://api.payfast.co.za/[endpoint]/[token]/[action]?testing=true [endpoint]: This should be set to “subscriptions”. [token]: A 36 character alphanumeric string which uniquely identifying a subscription. [action]: This will be the verb describing […]