PHPackages                             aldok10/larapaystack - 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. aldok10/larapaystack

ActiveLibrary[Payment Processing](/categories/payments)

aldok10/larapaystack
====================

A Laravel Package for Paystack

v1.0(4y ago)010MITPHPPHP ^7.2 | ^8.0

Since May 19Pushed 4y ago1 watchersCompare

[ Source](https://github.com/aldok10/larapaystack)[ Packagist](https://packagist.org/packages/aldok10/larapaystack)[ RSS](/packages/aldok10-larapaystack/feed)WikiDiscussions main Synced 5d ago

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

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

[](#laravel-paystack)

[![Latest Stable Version](https://camo.githubusercontent.com/43fe5c751f6f55b82d762545cd57d47a39ee35639bfd531705d19e788ad1add9/68747470733a2f2f706f7365722e707567782e6f72672f616c646f6b31302f6c617261706179737461636b2f762f737461626c652e737667)](https://packagist.org/packages/aldok10/larapaystack)[![License](https://camo.githubusercontent.com/b24682f99a74be95fe202100e7bcf5320f4e4537446bc89e1ce709e927b66e7c/68747470733a2f2f706f7365722e707567782e6f72672f616c646f6b31302f6c617261706179737461636b2f6c6963656e73652e737667)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/b44fe729f1a59941f16b2aa71cc8eaa1ff7b00cf3f041a5277b9f45c7bbda79c/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f616c646f6b31302f6c617261706179737461636b2e737667)](https://travis-ci.org/aldok10/larapaystack)[![Quality Score](https://camo.githubusercontent.com/2ccf949ffbfb21b821edcd796955b63441934fa90ded74c7b81b1a9ef2b0118b/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f616c646f6b31302f6c617261706179737461636b2e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/aldok10/larapaystack)[![Total Downloads](https://camo.githubusercontent.com/432814d22cd47924c07c4034e84930462c18cb1f4da8ac024743c0298e100bb3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f616c646f6b31302f6c617261706179737461636b2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/aldok10/larapaystack)

> 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 aldok10/larapaystack
```

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

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

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

- `Mr20k\Paystack\PaystackServiceProvider::class`

Also, register the Facade like so:

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

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

[](#configuration)

You can publish the configuration file using this command:

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

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

```
