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

ActiveLibrary

prevailexcel/laravel-paystack
=============================

A Laravel Package for Paystack

0242PHP

Since Feb 13Pushed 1y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)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 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 unicodeveloper/laravel-paystack
```

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

```
"unicodeveloper/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,
    ...
]
```

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:

```
