Download the PHP package funnydevjsc/ninepay-laravel-integrate without Composer
On this page you can find all versions of the php package funnydevjsc/ninepay-laravel-integrate. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download funnydevjsc/ninepay-laravel-integrate
More information about funnydevjsc/ninepay-laravel-integrate
Files in funnydevjsc/ninepay-laravel-integrate
Package ninepay-laravel-integrate
Short Description Laravel package for 9pay.vn
License MIT
Homepage https://github.com/funnydevjsc/ninepay-laravel-integrate
Informations about the package ninepay-laravel-integrate
9pay.vn Laravel
The free Laravel package to help you integrate payment with 9pay.vn
Use Cases
- Create a payment link with 9pay.vn
- Parse result from 9pay.vn
- Example webhook
Features
- Dynamic 9pay.vn credentials from config/ninepay.php
- Easy to create payment link with a simple line code
Requirements
- PHP: 8.1 or higher
- Laravel 9.0 or higher
Quick Start
If you prefer to install this package into your own Laravel application, please follow the installation steps below
Installation
Step 1. Install a Laravel project if you don't have one already
https://laravel.com/docs/installation
Step 2. Require the current package using composer:
Step 3. Publish the controller file and config file
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:
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:
app/Http/Kernel.php
Step 6. Add route:
routes/api.php
Then your IPN (Webhook) URL will be something like https://yourdomain.ltd/api/ninepay/webhook, and you should provide it to 9pay's account setting. You could provide it to routes/web.php
if you want but remember that 9pay will check for referer matched with the pre-registration URL. So make sure that you provide them the right URL of website.
Testing
Feedback
Respect us in the Laravel Việt Nam
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email [email protected] or use the issue tracker.
Credits
- Funny Dev., Jsc
- All Contributors
License
The MIT License (MIT). Please see License File for more information.