ekipower/payum-nganluong
Laravel/Payum integration for the NganLuong payment gateway. Provides a Payum gateway factory and configuration to process payments via NganLuong in PHP/Laravel apps, enabling redirect-based checkout flows and transaction handling.
ekipower/nganluong, a direct migration path exists, but the TPM must assess whether the newer package offers critical improvements (e.g., bug fixes, feature parity, or Laravel-specific optimizations).payum/payum package (v3+) is recommended for Laravel 8+ due to its improved PSR-15 middleware support.PayumBundle or standalone Payum) plus Nganluong-specific configurations (API keys, endpoints).payum/payum-bundle's test utilities) is straightforward but may require stubbing Nganluong’s API responses.ekipower/nganluong (the successor) resolves critical issues (e.g., Laravel 10 compatibility, security patches).Http middleware or queue workers (e.g., Illuminate\Queue) will be needed to process responses.Why Deprecated?
ekipower/payum-nganluong that ekipower/nganluong addresses?Business Criticality
Team Expertise
Compliance & Localization
Monitoring & Observability
Monolog or third-party tools (e.g., Sentry)?payum/payum-bundle (v3+) for built-in routing, configuration, and testing utilities.payum/payum (v3+) with manual service registration.ekipower/nganluong lacks critical features.replace in composer.json to transition to the new package:
"repositories": [
{ "type": "vcs", "url": "https://github.com/ekipower/nganluong" }
],
"require": {
"ekipower/nganluong": "^1.0"
},
"replace": {
"ekipower/payum-nganluong": "ekipower/nganluong"
}
composer require payum/payum-bundle:^3.0
ekipower/payum-nganluong service definitions with ekipower/nganluong in Laravel’s config/services.php or Payum’s YAML/array config.# config/packages/payum.yaml
services:
payum.nganluong:
class: Ekipower\Nganluong\NganluongGateway
arguments:
- '@payum.core_api'
- { apiKey: '%env(NGANLUONG_API_KEY)%' }
PayumTest utilities to mock Nganluong responses:
use Payum\Core\Bridge\Symfony\Tests\PayumTest;
public function testNganluongPayment()
{
$this->client->followRedirects(false);
$capture = PayumTest::getCapture();
// ... test logic
}
payments table. Use Laravel’s migrations:
Schema::create('payments', function (Blueprint $table) {
$table->id();
$table->string('gateway'); // e.g., 'nganluong'
$table->json('details');
$table->timestamps();
});
// config/queue.php
'connections' => [
'database' => [
'driver' => 'database',
'table' => 'payment_jobs',
// ...
],
];
app/Services/PaymentService.php).throttle).logs/payments.log.spatie/fractal) for Nganluong failures.laravel-health) to monitor gateway availability.ekipower/nganluong for updates. Since it’s MIT-licensed, forks may be necessary if the package stagnates..env).How can I help you explore Laravel packages today?