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

ActiveLibrary[Payment Processing](/categories/payments)

squipix/laravel-paystack
========================

A Laravel Package for Paystack

1.0(1w ago)06↓100%MITPHPPHP ^7.2|^8.0|^8.1|^8.2CI passing

Since Mar 9Pushed 1w agoCompare

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

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

laravel-paystack
================

[](#laravel-paystack)

[![GitHub Workflow Status](https://camo.githubusercontent.com/58d1169d7f4f953a9d0c3a3b9a8e214a466655a51d3e44ef57c6e3c4a3f3ff36/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f737175697069782f537570706f72742f72756e2d74657374732e796d6c3f7374796c653d666c61742d737175617265)](https://github.com/squipix/Support/actions)[![Coverage Status](https://camo.githubusercontent.com/58d1169d7f4f953a9d0c3a3b9a8e214a466655a51d3e44ef57c6e3c4a3f3ff36/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f737175697069782f537570706f72742f72756e2d74657374732e796d6c3f7374796c653d666c61742d737175617265)](https://github.com/squipix/Support/actions)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/5f8a6f422d911bf6e00cc1a4c273f1c75b0f5deee4b9c9445994b1f2b7227182/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f737175697069782f537570706f72742e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/squipix/Support/?branch=master)[![SensioLabs Insight](https://camo.githubusercontent.com/06ddb423f8d26bbe40079ee3babc7a33ad5ef36c5c34c7f670933696788c4167/68747470733a2f2f696d672e736869656c64732e696f2f73656e73696f6c6162732f692f64653033353364642d646631372d343635362d623963302d3165656139356161333061322e7376673f7374796c653d666c61742d737175617265)](https://insight.sensiolabs.com/projects/de0353dd-df17-4656-b9c0-1eea95aa30a2)[![GitHub Issues](https://camo.githubusercontent.com/ae6c5456c579d337db9129eff4e6ba48d0cc92a1930145099d3a959f5a94651a/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f737175697069782f537570706f72742e7376673f7374796c653d666c61742d737175617265)](https://github.com/squipix/Support/issues)

[![Packagist](https://camo.githubusercontent.com/25c6999adcf1cbe24e6436215481e6cfd22ff2ebc20999b1cccc48e4ff7cce3a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7061636b6167652d737175697069782f737570706f72742d626c75652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/squipix/support)[![Packagist Release](https://camo.githubusercontent.com/a037b7dbffe71c485fff6a7943815fd72774bf4092f1746878b1274387dd475f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f737175697069782f537570706f72742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/squipix/support)[![Packagist Downloads](https://camo.githubusercontent.com/ac1d786017f642444b1bde88c41e0bc399c67e140e582259202fb474e35c8898/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f737175697069782f737570706f72742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/squipix/support)

> A Laravel Package for working with Paystack seamlessly

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 squipix/laravel-paystack:1.0
```

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

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

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

- `Squipix\Paystack\PaystackServiceProvider::class`

Also, register the Facade like so:

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

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

[](#configuration)

You can publish the configuration file using this command:

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

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

```
