PHPackages                             devrabiul/laravel-paystack - 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. devrabiul/laravel-paystack

ActiveLibrary[Payment Processing](/categories/payments)

devrabiul/laravel-paystack
==========================

A Laravel Package for Paystack

v1.0(7mo ago)14.1k—1.9%MITPHPPHP ^7.2|^8.0|^8.1|^8.2|^8.3|^8.4

Since Sep 28Pushed 7mo agoCompare

[ Source](https://github.com/devrabiul/laravel-paystack)[ Packagist](https://packagist.org/packages/devrabiul/laravel-paystack)[ RSS](/packages/devrabiul-laravel-paystack/feed)WikiDiscussions version\_1.0 Synced 1mo ago

READMEChangelog (1)Dependencies (6)Versions (4)Used By (0)

Laravel Paystack
================

[](#laravel-paystack)

[![Latest Stable Version](https://camo.githubusercontent.com/1cc88e7eff9bca9bf8af0b232355b75e85bc5bac1ecb22fb47dcf53e2b6eafe9/68747470733a2f2f706f7365722e707567782e6f72672f756e69636f646576656c6f7065722f6c61726176656c2d706179737461636b2f762f737461626c652e737667)](https://packagist.org/packages/unicodeveloper/laravel-paystack)[![License](https://camo.githubusercontent.com/dccf2b01e613fc12a00e0f7440f9bb448ab7ac060c05a521d9bf121ea4c875ee/68747470733a2f2f706f7365722e707567782e6f72672f756e69636f646576656c6f7065722f6c61726176656c2d706179737461636b2f6c6963656e73652e737667)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/cd58d9025f9158ec65c362c3876219666260349c01cc1dfa3e532b1f8c45ba47/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f756e69636f646576656c6f7065722f6c61726176656c2d706179737461636b2e737667)](https://travis-ci.org/unicodeveloper/laravel-paystack)[![Quality Score](https://camo.githubusercontent.com/5c067b84e19a901c63056620d9c7fb55bffc70236480fffaabf06e244b680008/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f756e69636f646576656c6f7065722f6c61726176656c2d706179737461636b2e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/unicodeveloper/laravel-paystack)[![Total Downloads](https://camo.githubusercontent.com/d47e97414b8f1e65fe9ef518f1c2e3f132ee412808746140a029ee44d2c342ff/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f756e69636f646576656c6f7065722f6c61726176656c2d706179737461636b2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/unicodeveloper/laravel-paystack)

> A Laravel package for integrating **Paystack** seamlessly with your Laravel application.

---

🚀 What's New (2025 Update)
--------------------------

[](#-whats-new-2025-update)

- ✅ **Full support for Laravel 12** — Compatible with the latest Laravel version out of the box.
- ✅ **Tested with PHP 8.4** — Ensures smooth performance and full compatibility with modern PHP features.
- ✅ **Expanded helper methods documentation** — Includes practical examples for every Paystack helper.
- ✅ **Example integration for Livewire and SPA apps** — Demonstrates real-time Paystack payment flows.
- ✅ **Better error handling and debugging tips** — Easier troubleshooting for token expiry, invalid references, and callback issues.

---

---

🚀 Live Demo
-----------

[](#-live-demo)

👉 [Try the Live Demo](https://packages.rixetbd.com/devrabiul/laravel-paystack)

[![Live Demo Thumbnail](https://camo.githubusercontent.com/9f3f754f7797f14a498841105b94955b1de73fb438a62e548d2a8102533eebba/68747470733a2f2f7061636b616765732e726978657462642e636f6d2f73746f726167652f6170702f7075626c69632f7061636b6167652f64657672616269756c2f6c61726176656c2d706179737461636b2e77656270)](https://camo.githubusercontent.com/9f3f754f7797f14a498841105b94955b1de73fb438a62e548d2a8102533eebba/68747470733a2f2f7061636b616765732e726978657462642e636f6d2f73746f726167652f6170702f7075626c69632f7061636b6167652f64657672616269756c2f6c61726176656c2d706179737461636b2e77656270)

---

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

[](#installation)

You can install this fork using:

[PHP](https://php.net) 5.4+ or [HHVM](http://hhvm.com) 3.3+, and [Composer](https://getcomposer.org) are required.

Ensure you have **PHP 8.0+** and **Composer** installed. To get the latest version of Laravel **Paystack**, simply require it

```
composer require devrabiul/laravel-paystack
```

Or add the following line to the require block of your `composer.json` file.

```
"devrabiul/laravel-paystack": "1.0.*"

```

You'll then need to run `composer install` or `composer update` to download it and have the autoloader updated.

Once Laravel Paystack is installed, you need to register the service provider. Open up `config/app.php` and add the following to the `providers` key.

```
'providers' => [
    ...
    Unicodeveloper\Paystack\PaystackServiceProvider::class,
    ...
]
```

> If you use **Laravel &gt;= 5.5** you can skip this step and go to [**`configuration`**](https://github.com/unicodeveloper/laravel-paystack#configuration)

- `Unicodeveloper\Paystack\PaystackServiceProvider::class`

Also, register the Facade like so:

```
'aliases' => [
    ...
    'Paystack' => Unicodeveloper\Paystack\Facades\Paystack::class,
    ...
]
```

🔧 About This Fork
-----------------

[](#-about-this-fork)

This is an **updated fork** of [unicodeveloper/laravel-paystack](https://github.com/unicodeveloper/laravel-paystack), maintained to ensure continued compatibility with modern Laravel and PHP versions.

The original package is stable and widely used, but has not yet been updated for recent framework releases. This fork provides seamless support for:

- **Laravel 12**
- **PHP 8.4**
- Updated dependencies and improved configuration defaults
- Minor internal refactors for cleaner, modern Laravel conventions

---

Compatibility
-------------

[](#compatibility)

Laravel VersionPHP Version6.x7.2+7.x7.2+8.x7.2+9.x8.0+10.x8.0+11.x8.1+12.x8.2+> This package has been tested with Laravel 6 through 12 and PHP 7.2 through 8.4.

---

Configuration
-------------

[](#configuration)

You can publish the configuration file using this command:

```
php artisan vendor:publish --provider="Unicodeveloper\Paystack\PaystackServiceProvider"
```

A configuration-file named `paystack.php` with some sensible defaults will be placed in your `config` directory:

```
