solidworx/klarna-invoice
Laravel package for Klarna Invoice payments. Provides helpers and integration scaffolding to create invoices, handle checkout/payment flows, and manage customer/order details within your Laravel app.
payum/laravel-payum), making it suitable for Laravel-based e-commerce or subscription platforms.payum/payum) as a foundational layer, adding complexity but enabling multi-gateway support.Capture, Authorize) and its Laravel integration.klarna/hosted-checkout-php) or Laravel wrapper (e.g., spatie/laravel-klarna) reduce complexity?pending, expired invoices)?payum/laravel-payum for seamless Laravel service provider/queue integration.CaptureInvoiceAction) to avoid timeouts.InvoiceCreated, PaymentFailed).payum/payum and payum/laravel-payum.KlarnaInvoice gateway in config/payum.php.Capture, Status).$gateway = Payum::service()->getGateway('klarna_invoice');
$capture = new Capture($gateway, $token);
$capture->execute();
klarna/hosted-checkout-php if needed).Klarna\Api\Exception\ApiException).payum/laravel-payum support).payments table).payum/payum and solidworx/klarna-invoice for updates.composer.json to avoid surprises (e.g., solidworx/klarna-invoice:^0.2).invoice_number format).Status after Capture to confirm payment."Payum::setDebug(true)) logs API calls/responses.payment_failed).spatie/laravel-circuitbreaker).| Failure Scenario | Impact | Mitigation |
|---|---|---|
| Klarna API downtime | Orders stuck in pending state |
Queue retries + admin alerts |
| Webhook signature validation | Silent payment updates missed | Validate signatures; log failed webhooks |
| Payum misconfiguration | Payments not captured | Unit tests for gateway setup |
| PHP 8+ deprecation warnings | Runtime errors | Update #[ReturnTypeWillChange] annotations |
| Invoice expiration | Lost revenue | Automate reminders via Klarna’s API |
pending invoices").config.How can I help you explore Laravel packages today?