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

ActiveLibrary[Payment Processing](/categories/payments)

sajjadhossainshohag/laravel-paystack
====================================

A Laravel Package for Paystack

v1.0(5mo ago)3443↓100%MITPHPPHP ^7.2|^8.0|^8.1|^8.2|^8.3|^8.4

Since Oct 19Pushed 4w agoCompare

[ Source](https://github.com/sajjadhossainshohag/laravel-paystack)[ Packagist](https://packagist.org/packages/sajjadhossainshohag/laravel-paystack)[ RSS](/packages/sajjadhossainshohag-laravel-paystack/feed)WikiDiscussions main Synced today

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

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

[](#laravel-paystack)

[![Latest Stable Version](https://camo.githubusercontent.com/867d077554cc27a7d754316bb6e721a6cb3740e32b8888d4e702b24a9716a14c/68747470733a2f2f706f7365722e707567782e6f72672f73616a6a6164686f737361696e73686f6861672f6c61726176656c2d706179737461636b2f762f737461626c652e737667)](https://packagist.org/packages/sajjadhossainshohag/laravel-paystack)[![License](https://camo.githubusercontent.com/9b811c7128ffd8e5da6853b34acdf37e02c3a641075699c4ce31061c97a75b0e/68747470733a2f2f706f7365722e707567782e6f72672f73616a6a6164686f737361696e73686f6861672f6c61726176656c2d706179737461636b2f6c6963656e73652e737667)](LICENSE.md)

[![Quality Score](https://camo.githubusercontent.com/425db01bb2721e1391153b00af42199ac0a6e7c7be51a81ce4eaa5821114b5b2/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f73616a6a6164686f737361696e73686f6861672f6c61726176656c2d706179737461636b2e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/sajjadhossainshohag/laravel-paystack)[![Total Downloads](https://camo.githubusercontent.com/675b2b939e8390d6c5090ffb447519c44e3010be825ac9e06dafdb10942aace0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f73616a6a6164686f737361696e73686f6861672f6c61726176656c2d706179737461636b2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/sajjadhossainshohag/laravel-paystack)

> This package is a modernized fork of unicodeveloper/laravel-paystack.

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

[](#installation)

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

To get the latest version of Laravel Paystack, simply require it

```
composer require sajjadhossainshohag/laravel-paystack
```

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

```
"sajjadhossainshohag/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' => [
    ...
    Sajjadhossainshohag\Paystack\PaystackServiceProvider::class,
    ...
]
```

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

- `Sajjadhossainshohag\Paystack\PaystackServiceProvider::class`

Also, register the Facade like so:

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

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

[](#configuration)

You can publish the configuration file using this command:

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

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

```
