PHPackages                             numericscoder/npay-laravel - 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. numericscoder/npay-laravel

ActiveLibrary

numericscoder/npay-laravel
==========================

A laravel 5.6 Package for N-pay

010PHP

Since Jul 25Pushed 7y agoCompare

[ Source](https://github.com/PeterNdeke/npay-laravel)[ Packagist](https://packagist.org/packages/numericscoder/npay-laravel)[ RSS](/packages/numericscoder-npay-laravel/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

NPay-Laravel
============

[](#npay-laravel)

> A Laravel 5.6 Package for integrating NPay seamlesslyA

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

[](#installation)

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

To get the latest version of Npay-laravel, simply require it using composer

```
composer require numericscoder/npay-laravel
```

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

```
"numericscoder/npay-laravel": "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.

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

- `Numericscoder\Npay\NpayServiceProvider::class`

Also, register the Facade like so:

```
'aliases' => [
    ...
    'Npay' => Numericscoder\Npay\Facades\Npay::class,
    ...
]
```

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

[](#configuration)

You can publish the configuration file using this command:

```
php artisan vendor:publish --provider="Numericscoder\Npay\NpayServiceProvider"
```

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

```
