PHPackages                             fintech-systems/laravel-payfast - 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. fintech-systems/laravel-payfast

Abandoned → [https://github.com/fintech-systems/laravel-payfast-onsite](/?search=https%3A%2F%2Fgithub.com%2Ffintech-systems%2Flaravel-payfast-onsite)ArchivedLibrary[Payment Processing](/categories/payments)

fintech-systems/laravel-payfast
===============================

A PayFast Onsite Payments integration for Laravel designed to ease subscription billing. Livewire views are included.

v0.8.0(3y ago)0103MITPHPPHP ^8.0

Since May 27Pushed 1y ago2 watchersCompare

[ Source](https://github.com/fintech-systems/laravel-payfast-onsite)[ Packagist](https://packagist.org/packages/fintech-systems/laravel-payfast)[ Docs](https://github.com/fintech-systems/laravel-payfast-onsite)[ GitHub Sponsors](https://github.com/FintechSystems)[ RSS](/packages/fintech-systems-laravel-payfast/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (11)Versions (13)Used By (0)

About Laravel PayFast Onsite
----------------------------

[](#about-laravel-payfast-onsite)

[![GitHub release (latest by date)](https://camo.githubusercontent.com/346e0faa80fcc9895e0956ae8a6d9caaed3cff3e17544a0f8d562ccc9884a2c4/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f66696e746563682d73797374656d732f6c61726176656c2d706179666173742d6f6e73697465)](https://camo.githubusercontent.com/346e0faa80fcc9895e0956ae8a6d9caaed3cff3e17544a0f8d562ccc9884a2c4/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f66696e746563682d73797374656d732f6c61726176656c2d706179666173742d6f6e73697465) [![Build Status](https://camo.githubusercontent.com/19bced9a108ef38367acf4e121db6e98fce98acc41c88fe2428eab3752d60c93/68747470733a2f2f6170702e7472617669732d63692e636f6d2f66696e746563682d73797374656d732f6c61726176656c2d706179666173742d6f6e736974652e7376673f6272616e63683d6d61696e)](https://app.travis-ci.com/fintech-systems/laravel-payfast-onsite) [![GitHub](https://camo.githubusercontent.com/f9e3d7840eb26ec6f2ef53dd61b95cd51fb7731c5e05cd5928d0422ef3462b2a/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f66696e746563682d73797374656d732f6c61726176656c2d706179666173742d6f6e73697465)](https://camo.githubusercontent.com/f9e3d7840eb26ec6f2ef53dd61b95cd51fb7731c5e05cd5928d0422ef3462b2a/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f66696e746563682d73797374656d732f6c61726176656c2d706179666173742d6f6e73697465)

**Update 17 July 2024**

This repo is being archived.

Most of the work here was continued at this repo:

---

A [PayFast Onsite Payments](https://developers.payfast.co.za/docs#onsite_payments) implementation for Laravel designed to ease subscription billing. [Livewire](https://laravel-livewire.com/) 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](https://www.payfast.co.za/registration)

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

[](#installation)

Install the package via composer:

```
composer require fintech-systems/laravel-payfast-onsite
```

Publish Configuration and Views
-------------------------------

[](#publish-configuration-and-views)

Publish the config file with:

```
php artisan vendor:publish --provider="FintechSystems\Payfast\PayfastServiceProvider" --tag="payfast-config"
```

Publish the Success and Cancelled views and the Livewire components for subscriptions and receipts.

```
php artisan vendor:publish --provider="FintechSystems\Payfast\PayfastServiceProvider" --tag="payfast-views"
```

### Nova Integration

[](#nova-integration)

Optionally publish Laravel Nova Subscription and Receipts Resources

```
php artisan vendor:publish --provider="FintechSystems\Payfast\PayfastServiceProvider" --tag="payfast-nova-resource"
```

Migrations
----------

[](#migrations)

A migration is needed to create Customers, Orders, Receipts and Subscriptions tables:

```
php artisan migrate
```

Example Configuration
---------------------

[](#example-configuration)

`config/payfast.php`:

```
