PHPackages                             tshimologomoeng/payfast-php - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Payment Processing](/categories/payments)
4. /
5. tshimologomoeng/payfast-php

ActiveLibrary[Payment Processing](/categories/payments)

tshimologomoeng/payfast-php
===========================

Modern PHP package for PayFast payment integration

2.0.2(5mo ago)0311MITPHP

Since Nov 22Pushed 5mo agoCompare

[ Source](https://github.com/tshimo73/payfast-php)[ Packagist](https://packagist.org/packages/tshimologomoeng/payfast-php)[ RSS](/packages/tshimologomoeng-payfast-php/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (1)Versions (10)Used By (1)

PayFast PHP Package
===================

[](#payfast-php-package)

Modern PHP package for PayFast payment integration with automatic signature generation and webhook handling.

Features
--------

[](#features)

- ✅ Simple payment integration
- ✅ Onsite payments (embedded checkout)
- ✅ Recurring billing (subscriptions)
- ✅ Tokenization payments
- ✅ Split payments
- ✅ Automatic signature generation
- ✅ Webhook (ITN) validation
- ✅ Sandbox/Production mode toggle
- ✅ PHP 8.1+ with full type safety

Installation
------------

[](#installation)

```
composer require tshimologomoeng/payfast-php
```

Requirements
------------

[](#requirements)

- PHP 8.1 or higher
- cURL extension
- HTTPS required for onsite payments

---

Table of Contents
-----------------

[](#table-of-contents)

1. [Simple Payment Integration](#simple-payment-integration)
2. [Onsite Payments](#onsite-payments)
3. [Recurring Billing (Subscriptions)](#recurring-billing-subscriptions)
4. [Tokenization](#tokenization)
5. [Split Payments](#split-payments)
6. [Webhook Handler](#webhook-handler)
7. [Testing](#testing)

---

Simple Payment Integration
--------------------------

[](#simple-payment-integration)

Redirect users to PayFast's payment page.

```
