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.
| Dependency | Version |
|---|---|
| PHP | ^8.2 |
guzzlehttp/guzzle |
^7.8 |
illuminate/support (optional) |
^11.0 | ^12.0 | ^13.0 — for the Laravel facade and service provider |
composer require nordkit/svea
The service provider and facade are auto-discovered. Publish the config file:
php artisan vendor:publish --tag=svea-config
Then add credentials to .env:
SVEA_MERCHANT_ID=...
SVEA_SHARED_SECRET=...
SVEA_ENVIRONMENT=test
SVEA_WEBHOOK_SECRET=...
See Configuration for the full list of supported keys.
Instantiate SveaClient directly with a config array:
use Svea\SveaClient;
$svea = new SveaClient([
'merchant_id' => 'abc',
'shared_secret' => 'xyz',
'environment' => 'test',
'webhook_secret' => 'whsec_...',
]);
See the standalone guide for more.
How can I help you explore Laravel packages today?