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

ActiveLibrary[Payment Processing](/categories/payments)

ye42/laravel-paystack
=====================

A Laravel Package for Paystack

v1.2.0(11mo ago)0474—0%1MITPHPPHP ^8.2|^8.4

Since Jun 3Pushed 11mo agoCompare

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

READMEChangelogDependencies (6)Versions (2)Used By (0)

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

[](#laravel-paystack)

[![Latest Stable Version](https://camo.githubusercontent.com/0ff09056c1e348d18cdcf1de35a6de0e9b0fc79954b024563818278425dd6f49/68747470733a2f2f706f7365722e707567782e6f72672f796534322f6c61726176656c2d706179737461636b2f762f737461626c652e737667)](https://packagist.org/packages/ye42/laravel-paystack)[![License](https://camo.githubusercontent.com/4d3a2fa5ca9621d016f959b5fbef60129263c559b9b70bf9a3cc906e918ece7a/68747470733a2f2f706f7365722e707567782e6f72672f796534322f6c61726176656c2d706179737461636b2f6c6963656e73652e737667)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/8bd971bc19add9ceb1c9798ec3818b7b09ebba00dfba552543e4dfdafc3c7368/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f796534322f6c61726176656c2d706179737461636b2e737667)](https://travis-ci.org/ye42/laravel-paystack)[![Quality Score](https://camo.githubusercontent.com/b96d24f7f51283800efda7f054b56cc71f008cd41c3174354a6e357878b193fe/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f796534322f6c61726176656c2d706179737461636b2e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/ye42/laravel-paystack)[![Total Downloads](https://camo.githubusercontent.com/9ea13bf2f1e50f95a9f53e4da6753c6cab3a6fa67b7daeb6318d91299fd28889/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f796534322f6c61726176656c2d706179737461636b2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/ye42/laravel-paystack)

> A Laravel Package for working with Paystack seamlessly

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

[](#installation)

[PHP](https://php.net) 8.2+ and [Composer](https://getcomposer.org) are required.

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

```
composer require ye42/laravel-paystack
```

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

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

Also, register the Facade like so:

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

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

[](#configuration)

You can publish the configuration file using this command:

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

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

```
