Pros:
OrdersClient, PaymentsClient) via facade or DI, allowing granular control over LionTech’s API endpoints.WebhookSignatureVerifier) and RSA card encryption (CardEncryptor) align with PCI compliance requirements for payment processing.Client instantiation with tenant-specific credentials.LIONTECH_ACCESS_TOKEN).Cons:
nokimaro/liontech-php-sdk (v1.x), which may introduce breaking changes if the underlying SDK evolves.LionTech::orders()->create()) and injected (PaymentsClient $payments) usage patterns, fitting Laravel’s conventions.WebhookSignatureVerifier) integrates cleanly with Laravel’s request pipeline (e.g., middleware or controller methods).CreateOrderRequest with successUrl, declineUrl).refunds()->create()).CardEncryptor simplifies PCI-compliant card data handling (e.g., tokenization for stored payment methods).nokimaro/liontech-php-sdk, requiring manual patches or forks.LIONTECH_WEBHOOK_PUBLIC_KEY). Misconfiguration could lead to false positives/negatives in fraud detection.LIONTECH_REFRESH_TOKEN) must be securely stored and rotated. The package lacks explicit guidance on token revocation flows./signature-key or /encryption-key), reducing config errors.WebhookPayload) reduce runtime errors.Client instantiation pattern supports this, but performance/latency implications of dynamic clients should be evaluated.Illuminate\Support\Facades\Http middleware).LionTech:: facade provides a fluent interface (e.g., LionTech::payments()->create()), reducing boilerplate in controllers.PaymentsClient) can be type-hinted into controllers/services, enabling mocking for testing.WebhookSignatureVerifier. Recommended to route webhooks to a dedicated controller (e.g., WebhookController) with middleware for signature validation.CardEncryptor abstracts PCI-compliant tokenization. Use in checkout flows to encrypt card data before sending to LionTech..env) are preferred for secrets, but the published config (config/liontech.php) allows for runtime overrides.composer require nokimaro/liontech-laravel
.env with required tokens and URLs (sandbox/live):
LIONTECH_ACCESS_TOKEN=your_live_token
LIONTECH_SANDBOX=false
LIONTECH_BASE_URL=https://api.fusionpayments.io
php artisan vendor:publish --tag=liontech-config
LionTech::orders()->create() to initiate payments.WebhookController with WebhookSignatureVerifier to handle async events (e.g., payment success/failure).LionTech::refunds()->create() for post-transaction adjustments.LIONTECH_SANDBOX=false) and monitor for errors.LionTech vs. PaymentGateway).CreateOrderRequest for checkout flows.WebhookController with signature verification.payment.succeeded or payment.declined.LionTech::refunds()).Client per tenant with tenant-specific credentials.LIONTECH_WEBHOOK_PUBLIC_KEY) trigger API fallbacks, which may introduce latency or fail silently if the API is unreachable..env variables and monitor for missing keys in logs.How can I help you explore Laravel packages today?