acatus-dev/paybox-bundle
Symfony bundle to integrate Paybox payments: handles HMAC signing, server availability checks, IPN signature verification via OpenSSL, and dispatches events on responses. Configure your account parameters and submit transaction data.
acatus-dev/paybox-bundle) explicitly targets Symfony 5, ensuring alignment with modern Symfony LTS (5.4/6.x). The original LexikPayboxBundle (Symfony 3/4) may introduce deprecation risks.PaymentGateway interface) but requires explicit integration with Symfony’s event system and dependency injection.HttpFoundation, EventDispatcher, and DependencyInjection components. Minimal boilerplate for basic use cases.AppKernel, EventDispatcher).HttpKernel as a micro-framework (overkill for Laravel).ServiceProvider/Middleware.Event facade to mimic Symfony events.Guzzle) may need adaptation for SOAP (e.g., php-soap extension).php.ini (PECL hash, openssl).Event system fully replace Symfony’s EventDispatcher for IPN handling?App\Exceptions\Handler)?HttpKernel in Laravel (complex, anti-pattern).Symfony\Component\HttpFoundation polyfills).HttpClient).EventDispatcher).Event system.| Feature | Symfony Bundle | Laravel Adaptation | Notes |
|---|---|---|---|
| HMAC Calculation | ✅ Built-in | ❌ Custom service needed | Requires hash_hmac() (PECL hash). |
| Server Pre-Request Test | ✅ Built-in | ❌ Middleware needed | Simulate Paybox’s server health check. |
| IPN Signature Verification | ✅ Built-in | ❌ Custom middleware/service | Use openssl_* functions. |
| Event Dispatching | ✅ Symfony Events | ✅ Laravel Events | Replace KernelEvents with Laravel’s. |
| Dependency Injection | ✅ Symfony DI | ✅ Laravel Service Container | Bind Paybox services manually. |
hash and openssl extensions.symfony/http-foundation (if using polyfills).AppServiceProvider.PayboxGateway facade to wrap bundle logic.Http tests..env.^5.4).README.md for Laravel-specific setup.AppKernel not found) will require cross-framework debugging.tinker to inspect Paybox services; log raw Paybox responses for IPN debugging.PayboxHmacGenerator).database: "mysql" queue with unique job deduplication.config + encryption).paybox_ipn_logs table).| Failure Scenario | Impact | Mitigation |
|---|---|---|
| Paybox server test failure | Transactions blocked | Retry logic + alerting (e.g., Laravel Horizon). |
| Invalid IPN signature | False payment confirmations | Reject and log; implement manual review flow. |
| HMAC secret leakage | PCI compliance violation | Use Laravel |
How can I help you explore Laravel packages today?