ekyna/payum-payzen
PayZen gateway for Payum (Systempay, Scellius, CLIC&PAY, OSB, SOGE_COMMERCE). Install via Composer and configure site_id, certificate, mode, hash, cache directory, and endpoint. Supports predefined endpoints or a custom endpoint URL.
payum/laravel), this package can be integrated into Laravel’s service container and event system (e.g., payments.sent, payments.captured).site_id, certificate, hash_mode), enabling multi-environment setups (dev/staging/prod) via Laravel’s .env.Payum Version Compatibility:
Laravel-Specific Integration:
AppServiceProvider)?Webhook/Callback Handling:
NOTIFICATION endpoints) in Laravel?Notification system or use Laravel middleware?Testing & Security:
MockGateway)?Multi-Gateway Strategy:
Payment class or a custom Laravel service facade?Long-Term Viability:
payum/laravel), enabling:
payments.sent, payments.captured) for analytics/logging.payum/doctrine-extensions or custom jobs).strict_types and return_type declarations.composer require ekyna/payum-payzen payum/payum payum/laravel
AppServiceProvider:
$this->app->bind('payum.gateway.payzen', function ($app) {
$factory = new PayzenGatewayFactory();
return $factory->create([
'site_id' => env('PAYZEN_SITE_ID'),
'certificate' => env('PAYZEN_CERTIFICATE'),
'hash_mode' => \Ekyna\Component\Payum\Payzen\Api\Api::HASH_MODE_SHA256,
'directory' => storage_path('app/payzen-cache'),
'ctx_mode' => \Ekyna\Component\Payum\Payzen\Api\Api::MODE_PRODUCTION,
]);
});
ConvertPaymentAction to map Payum Payment to a Laravel Order model)./payzen/callback) to handle PayZen notifications.hash parameter (custom logic required).Api class for deprecated endpoints.MODE_TEST).site_id, certificate) in Laravel Vault or .env.config/payum.php).$gateway->setDebug(true)) helps log API calls.directory config) to reduce latency.directory) may need locking in multi-server setups.| Failure Scenario | Impact | Mitigation |
|---|
How can I help you explore Laravel packages today?