przelewy24.event.payment_success), which aligns well with modern Symfony architectures but may require custom event listeners for non-Symfony apps.kernel.event_listener vs. Laravel’s listen()).routing.yml would need replacement with Laravel’s route definitions (e.g., Route::get()).AppKernel.php registration pattern doesn’t translate directly.przelewy24-laravel) is preferable.przelewy24.event.payment_success be mapped to Laravel’s events? Would a custom event dispatcher bridge be needed?ProcessFactory?Route::match() or would a custom controller adapter be required?/p24-test and /p24-fake-success endpoints are dev-only. How will these be replicated in Laravel’s testing environment?v1.2.0 feature allows dynamic merchant IDs. Is this critical, or can hardcoded values suffice for Laravel?verifyadapter fixes in v1.1.1) may need Laravel-specific overrides.ProcessFactory, Payment model) via a Laravel service while adapting Symfony-specific parts (e.g., events → Laravel events).symfony/http-client, symfony/event-dispatcher, etc.ProcessFactory, Payment model) into a Laravel-compatible service.PaymentEventInterface) to Laravel events (e.g., PaymentSucceeded).Event facade.routing.xml with Laravel routes for status callbacks./p24-test and /p24-fake-success as Laravel routes with similar functionality.ProcessFactory and related classes.config/services.php (Laravel’s equivalent of services.yml).| Feature | Symfony Bundle | Laravel Adaptation | Notes |
|---|---|---|---|
| Payment Initiation | ProcessFactory |
Custom service class | High compatibility. |
| Event Listeners | kernel.event_listener |
Laravel listen() or custom event dispatcher |
Requires mapping. |
| Routing | routing.yml |
Laravel Route::get()/Route::post() |
Manual conversion needed. |
| Sandbox Testing | /p24-test route |
Custom Laravel route | Replicate logic. |
| Webhook Validation | Symfony middleware | Laravel middleware | CRC validation critical. |
| Configuration | config.yml |
Laravel .env + config/przelewy24.php |
Simple migration. |
ProcessFactory and Payment into a Laravel service.// app/Services/Przelewy24Service.php
class Przelewy24Service {
public function createPaymentUrl(Payment $payment, string $merchantId, string $crcKey): string {
// Reimplement ProcessFactory::createAndGetUrl()
}
}
// app/Events/PaymentSucceeded.php
class PaymentSucceeded implements ShouldBroadcast {
public function __construct(public string $sessionId) {}
}
Route::post('/przelewy24/callback', [Przelewy24Controller::class, 'handleCallback']);
Route::get('/p24-test', [Przelewy24TestController::class, 'testConnection']);
Route::get('/p24-fake-success/{sessionId}', [Przelewy24TestController::class, 'simulateSuccess']);
AppKernel) won’t translate directly. Custom logging (Laravel’s Log facade) will be needed.How can I help you explore Laravel packages today?