nordkit/svea
Modern PHP SDK for Svea Checkout, Payment Admin, webhook subscriptions and inbound webhook verification. Fluent API with typed value objects, retries, idempotency, async task polling, and a robust testing fake. Includes first-class Laravel integration.
when(), unless(), chaining) mirrors Laravel’s query builder and form request patterns, easing adoption for PHP/Laravel developers.SveaClient can be instantiated manually for non-Laravel contexts (e.g., CLI scripts, testing).SveaWebhookReceived) enables seamless event-driven workflows (e.g., order fulfillment, fraud detection).Svea::fake() with assertion helpers mirrors Laravel’s Http::fake(), accelerating test-driven development for payment flows.29900 = 299.00 SEK) is explicitly documented, reducing surprises during integration.webhook_secret configuration.shared_secret and webhook_secret be secured? (e.g., vault, environment variables, Laravel’s config).SveaApiException be logged/monitored? (e.g., Sentry, Laravel’s App\Exceptions\Handler).Svea::fake() be used for unit/feature tests, or will a dedicated test environment be preferred?SveaWebhookReceived events)?shared_secret) be handled in logs or monitoring tools?SveaClient can be used in any PHP 8.2+ application, but loses Laravel-specific conveniences (e.g., facades, event dispatching).SveaClient in a Go/Python service).Svea::fake() layer integrates with Laravel’s testing tools (e.g., Http::fake()), enabling rapid test development.Svea::fake() to test edge cases (e.g., failed payments, duplicate webhooks).svea:subscription:add) to manage webhook subscriptions./webhooks/svea) to handle inbound events.SveaWebhookReceived events for decoupled processing (e.g., via queues).php artisan vendor:publish --tag=svea-config).SVEA_MERCHANT_ID, SVEA_SHARED_SECRET, etc.).Svea::checkout()->create()).php artisan svea:subscription:add).Svea::admin()->order()->deliver()).Svea::fake().config/svea.php) to avoid hardcoded values.SVEA_SHARED_SECRET).svea:subscription:list can be used for operational checks (e.g., verifying webhook subscriptions).SveaApiException for structured error handling (e.g., log status codes and responses).Svea-Signature headers match the webhook_secret.SveaWebhookReceived event listeners).SveaWebhookReceived events asynchronously.SVEA_MAX_RETRIES and SVEA_TIMEOUT to handle 429/5xx errors.How can I help you explore Laravel packages today?