nokimaro/liontech-laravel
Laravel integration for the FusionPayments (LionTech) payment gateway. Auto-discovered service provider, static facade, DI-registered API client singletons, publishable env-based config, webhook signature verification, and RSA card encryption. PHP 8.3+, Laravel 11–13.
WebhookController example updated to use typed WebhookPayload DTO from SDK v1.1.3:
WebhookPayload::fromJson() replaces manual JSON parsing$payment->isSuccessful() / isDeclined() replace string event type matching$webhook->error?->hasError() for typed error handlingLionTechConfig: empty string values (LIONTECH_WEBHOOK_PUBLIC_KEY=) now treated as null, triggering API key fallback instead of passing an empty string to WebhookSignatureVerifier / CardEncryptornokimaro/liontech-php-sdk ^1.1.0 (tested against v1.1.3)Full Changelog: https://github.com/nokimaro/liontech-laravel/compare/v1.1.0...v1.1.3
Full Changelog: https://github.com/nokimaro/liontech-laravel/compare/v1.1.0...v1.1.3
CardEncryptor: Fixed fallback key fetching — was incorrectly using signature()->getPublicKey() (webhook signature endpoint) instead of encryptionKey()->getPublicKey() (card encryption endpoint). These are different keys from different API endpoints.EncryptionKeyClient is now registered as a singleton in the service container and accessible via LionTech::encryptionKey() facade methodnokimaro/liontech-php-sdk ^1.1.0If you were relying on CardEncryptor auto-fetching the public key (i.e. LIONTECH_CARD_ENCRYPTION_PUBLIC_KEY was not set in .env), it was silently using the wrong key. Set the correct key explicitly or let the fixed fallback fetch it automatically from the /encryption-key endpoint.
Full Changelog: https://github.com/nokimaro/liontech-laravel/compare/v1.0.0...v1.1.0
Full Changelog: https://github.com/nokimaro/liontech-laravel/compare/v1.0.0...v1.1.0
Full Changelog: https://github.com/nokimaro/liontech-laravel/commits/v1.0.0
How can I help you explore Laravel packages today?