Download the PHP package fintech-systems/laravel-payfast without Composer
On this page you can find all versions of the php package fintech-systems/laravel-payfast. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download fintech-systems/laravel-payfast
More information about fintech-systems/laravel-payfast
Files in fintech-systems/laravel-payfast
Package laravel-payfast
Short Description A PayFast Onsite Payments integration for Laravel designed to ease subscription billing. Livewire views are included.
License MIT
Homepage https://github.com/fintech-systems/laravel-payfast-onsite
Informations about the package laravel-payfast
About Laravel PayFast Onsite
Update 17 July 2024
This repo is being archived.
Most of the work here was continued at this repo: https://github.com/eugenefvdm/payfast-onsite-subscriptions
A PayFast Onsite Payments implementation for Laravel designed to ease subscription billing. Livewire views are included.
THIS IS BETA SOFTWARE
- There may be some bugs but the core functionality should work.
Requirements:
- PHP 8.0
- Laravel
- A PayFast account
Installation
Install the package via composer:
Publish Configuration and Views
Publish the config file with:
Publish the Success and Cancelled views and the Livewire components for subscriptions and receipts.
Nova Integration
Optionally publish Laravel Nova Subscription and Receipts Resources
Migrations
A migration is needed to create Customers, Orders, Receipts and Subscriptions tables:
Example Configuration
config/payfast.php
:
Livewire Setup
Jetstream
I have modelled some Livewire views to fit into a Laravel Jetstream user profile page.
When calling the Livewire component, you can override any PayFast form field by specifying a mergeFields
array.
Example modification Jetstream Livewire's resources/views/profiles/show.php
:
Usage
Examples
- Generate a payment link
- Create an ad-hoc token optionally specifying the amount
- Cancel a subscription
- Update a card
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Screenshots
Credits
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-payfast with dependencies
symfony/dotenv Version ^5.3
illuminate/contracts Version ^8.37
payfast/payfast-php-sdk Version ^1.1
spatie/ray Version ^1.32
livewire/livewire Version ^2.8
moneyphp/money Version ^4.0