reliva / nexgen
NexGen Payment Gateway Integration for Laravel
1.0.2
2026-02-23 09:41 UTC
Requires
- php: ^8.1
README
Laravel package for the Nexgen Payment Gateway API: Online Banking, MPGS and Duitnow Dynamic QR.
Source: github.com/Reliva-Technology/nexgen-laravel
Features
- Collections & billings — Create collections, create billings, get payment URLs for Online Banking / MPGS
- QR payments — Terminals and dynamic QR codes for Duitnow Dynamic QR
- Environments — Sandbox, production, and custom (Online banking / MPGS); production and custom (Duitnow Dynamic QR)
- PHP 8.1+, Laravel 8.0+, API key/secret authentication
Requirements
- PHP >= 8.1
- Laravel >= 8.0
- Composer
Installation
composer require reliva/nexgen php artisan vendor:publish --tag=nexgen-config
Add the required environment variables to .env (see docs/installation.md for the full list and options).
Quick start
Collections & billings (Online Banking / MPGS):
use Reliva\Nexgen\NexgenClient; protected NexgenClient $client; public function __construct() { $this->client = new NexgenClient(); }
QR payments (DuitNow Dynamic QR):
use Reliva\Nexgen\NexgenQRClient; protected NexgenQRClient $client; public function __construct() { $this->client = new NexgenQRClient(); }
Documentation
Full documentation is in the docs/ folder. Recommended flow:
| # | Document | Description |
|---|---|---|
| 1 | Installation | Install and configure the package |
| 2 | Usage | NexgenClient & NexgenQRClient setup and usage |
| 3 | DuitNow | Collections & billings (link-based payments) |
| 4 | DuitNow QR | Terminals & dynamic QR payments |
| 5 | Webhooks | Handling payment callbacks |
The docs cover all API methods, parameters, response handling, and error handling.
License
This package is open-sourced software licensed under the MIT license.
Changelog
See CHANGELOG for changes.