Complete PayFast payment gateway integration for Django. Set up your webhook endpoint and start receiving model updates instantly. A copy of all PayFast models available in Django, as soon as they are updated!
Everything you need for PayFast integration in Django
Full implementation of PayFast models for Django with webhook support and instant model updates.
Support for PayFast Core, Billing, Cards (JS v2), Sources (JS v3), and Payment Methods with SCA support.
Automatic signature verification, IP validation, and server-side validation with PayFast.
Support for multiple PayFast accounts and API keys in a single Django project.
Automatic ITN (Instant Transaction Notification) processing with complete audit trail.
Full Django admin integration for managing payments and viewing transaction history.
Tested with PayFast API 2020-08-27
Version 3.8 or higher
Version 3.2 - 5.0
Version 12+ (Recommended)
MariaDB ≥10.5 or MySQL ≥8.0
Nginx, Gunicorn, Docker, Celery
Email setup configured
Get started in minutes
Install the latest version from PyPI
Update your Django settings.py
Add your PayFast credentials
Include PayFast URLs in your project
Create the necessary database tables
You're all set to integrate PayFast payments
Create your first payment in minutes
Comprehensive guides and API reference
Help us maintain and improve this project
We've been bringing dj-payfast to the world for over 10 years. Your sponsorship helps us keep a team of maintainers actively working to improve dj-payfast and ensure it stays up-to-date with the latest PayFast changes.
All contributions through GitHub sponsors flow into our Open Collective, which holds our funds and keeps an open ledger on how donations are spent.
Become a SponsorOther Django payment integrations