πŸ’³

PayFast Payment Gateway

Complete guide to integrating PayFast South African payment solutions

P

PayFast - South African Payment Leader

Trusted payment solutions for South African businesses

πŸ‡ΏπŸ‡¦ South African Focus

  • β€’ Leading SA payment processor
  • β€’ ZAR currency support
  • β€’ Local banking integration
  • β€’ POPI Act compliant

πŸ’³ Payment Methods

  • β€’ Credit & Debit Cards
  • β€’ Instant EFT
  • β€’ Masterpass
  • β€’ Bitcoin

πŸ”‘ How to Create PayFast Account

1

Sign Up for PayFast

Visit PayFast Registration and create a new account.

2

Complete Business Verification

Provide business documentation and complete the verification process.

3

Access Dashboard

Log into your PayFast dashboard to access integration settings.

4

Get Integration Details

Navigate to "Settings" β†’ "Integration" to get your merchant credentials.

βš™οΈ Environment Configuration

Add these environment variables to your .env file:

APP_PAYFAST_MERCHANT_ID="your_merchant_id" APP_PAYFAST_MERCHANT_KEY="your_merchant_key" APP_PAYFAST_PASSPHRASE="your_passphrase" APP_PAYFAST_SANDBOX="true"

Note: Set SANDBOX to "false" for production environment.

πŸ”Œ API Endpoints

POST /api/finance/deposit/fiat/payfast/

Creates PayFast payment with form-based integration

Request Body:

{ "amount": 100.00, "currency": "ZAR", "customer": { "name": "John Doe", "email": "john@example.com" } }
POST /api/finance/deposit/fiat/payfast/verify

Verifies PayFast payment status from return URL

POST /api/finance/deposit/fiat/payfast/webhook

Handles PayFast ITN (Instant Transaction Notification) callbacks

GET /api/finance/deposit/fiat/payfast/status

Checks PayFast payment status and handles expiration

✨ Supported Features

Payment Methods

  • Credit Cards (Visa, Mastercard)
  • Instant EFT
  • Masterpass
  • Bitcoin
  • Mobicred
  • SCode

Key Features

  • ZAR currency support
  • Local banking integration
  • POPI Act compliant
  • Fraud protection
  • Real-time notifications
  • Sandbox testing