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

ActiveLibrary[Payment Processing](/categories/payments)

dotmarn/laravel-paystack
========================

A Laravel Package for Paystack

v2.0.0(1y ago)02.8k—10%MITPHPPHP ^7.2|^8.0|^8.1|^8.2

Since Feb 2Pushed 1y agoCompare

[ Source](https://github.com/dotmarn/laravel-paystack)[ Packagist](https://packagist.org/packages/dotmarn/laravel-paystack)[ RSS](/packages/dotmarn-laravel-paystack/feed)WikiDiscussions master Synced 1mo ago

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

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

[](#laravel-paystack)

[![Latest Stable Version](https://camo.githubusercontent.com/41eb73a10a8439b52f500d0b274e80a8bf89c03e3623ed04201cc1151cbcb134/687474703a2f2f706f7365722e707567782e6f72672f646f746d61726e2f6c61726176656c2d706179737461636b2f76)](https://packagist.org/packages/dotmarn/laravel-paystack)[![PHP Version Require](https://camo.githubusercontent.com/3284e08d2e347549ee671d7d05d98fe9b23f2593a8d9188bcde64d3c6186c49a/687474703a2f2f706f7365722e707567782e6f72672f646f746d61726e2f6c61726176656c2d706179737461636b2f726571756972652f706870)](https://packagist.org/packages/dotmarn/laravel-paystack)[![License](https://camo.githubusercontent.com/7211c2dbf8bd4ad6f3b66069e2405f96b5d0e251a7adee77cbf69a0e404c96e5/687474703a2f2f706f7365722e707567782e6f72672f646f746d61726e2f6c61726176656c2d706179737461636b2f6c6963656e7365)](https://packagist.org/packages/dotmarn/laravel-paystack)[![Build Status](https://camo.githubusercontent.com/dc1a16c2b5814199598bfa2fd3a8872c10d9c280325b6e8fc36228cf987362b1/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f646f746d61726e2f6c61726176656c2d706179737461636b2e737667)](https://travis-ci.org/dotmarn/laravel-paystack)[![Quality Score](https://camo.githubusercontent.com/bee9fdd7431ec6fa709f9bee598db079a8a31d4345667ad3d9d03f7ec8830333/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f646f746d61726e2f6c61726176656c2d706179737461636b2e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/dotmarn/laravel-paystack)[![Total Downloads](https://camo.githubusercontent.com/40b8cde28c62cb9fcd64f6c1c9e1d2844a5934eb4f5eb89cc12eb60d088309b3/687474703a2f2f706f7365722e707567782e6f72672f646f746d61726e2f6c61726176656c2d706179737461636b2f646f776e6c6f616473)](https://packagist.org/packages/dotmarn/laravel-paystack)[![CircleCI Build](https://camo.githubusercontent.com/7572d806dccb65da9a252fbf947501f5c8260912b58b9d95c66a2e8c1ec3c90f/687474703a2f2f706f7365722e707567782e6f72672f646f746d61726e2f6c61726176656c2d706179737461636b2f636972636c656369)](https://packagist.org/packages/dotmarn/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 dotmarn/laravel-paystack
```

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

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

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

- `Dotman\Paystack\PaystackServiceProvider::class`

Also, register the Facade like so:

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

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

[](#configuration)

You can publish the configuration file using this command:

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

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

```
