PHPackages                             funnydevjsc/ninepay-laravel-integrate - 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. funnydevjsc/ninepay-laravel-integrate

ActiveLibrary[Payment Processing](/categories/payments)

funnydevjsc/ninepay-laravel-integrate
=====================================

Laravel package for 9pay.vn

1.0.6(1y ago)3593MITPHPPHP ^8.1

Since May 13Pushed 1y agoCompare

[ Source](https://github.com/funnydevjsc/ninepay-laravel-integrate)[ Packagist](https://packagist.org/packages/funnydevjsc/ninepay-laravel-integrate)[ Docs](https://github.com/funnydevjsc/ninepay-laravel-integrate)[ RSS](/packages/funnydevjsc-ninepay-laravel-integrate/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (7)Dependencies (3)Versions (7)Used By (0)

9pay.vn Laravel
===============

[](#9payvn-laravel)

The free Laravel package to help you integrate payment with 9pay.vn

Use Cases
---------

[](#use-cases)

- Create a payment link with 9pay.vn
- Parse result from 9pay.vn
- Example webhook

Features
--------

[](#features)

- Dynamic 9pay.vn credentials from config/ninepay.php
- Easy to create payment link with a simple line code

Requirements
------------

[](#requirements)

- **PHP**: 8.1 or higher
- **Laravel** 9.0 or higher

Quick Start
-----------

[](#quick-start)

If you prefer to install this package into your own Laravel application, please follow the installation steps below

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

[](#installation)

#### Step 1. Install a Laravel project if you don't have one already

[](#step-1-install-a-laravel-project-if-you-dont-have-one-already)

#### Step 2. Require the current package using composer:

[](#step-2-require-the-current-package-using-composer)

```
composer require funnydevjsc/ninepay-laravel-integrate
```

#### Step 3. Publish the controller file and config file

[](#step-3-publish-the-controller-file-and-config-file)

```
php artisan vendor:publish --provider="FunnyDev\Ninepay\NinepayServiceProvider" --tag="ninepay"
```

If publishing files fails, please create corresponding files at the path `config/ninepay.php` and `app\Http\Controllers\NinepayControllers.php` from this package. And you can also further customize the NinepayControllers.php file to suit your project.

#### Step 4. Update the various config settings in the published config file:

[](#step-4-update-the-various-config-settings-in-the-published-config-file)

After publishing the package assets a configuration file will be located at `config/ninepay.php`. Please contact 9pay.vn to get those values to fill into the config file.

#### Step 5. Add middleware protection:

[](#step-5-add-middleware-protection)

###### app/Http/Kernel.php

[](#apphttpkernelphp)

```
