Skip to main content

Payment Integrations

Logidav integrates with multiple payment providers to process card payments, buy-now-pay-later (BNPL) installments, and insurance-backed payment plans. Each provider has a dedicated API client that handles transactions and refunds.

Payment Flow

Provider Overview

ProviderTypeAPI ClientUse Case
StripeCard paymentsStripeApiPrimary card processor
HipayCard paymentsHipayApiCard transactions and refunds
PaylineCard paymentsPaylineServiceCard payments with full transaction logging
KlarnaBNPLKlarnaApiBuy-now-pay-later installments
ScalapayBNPLScalapayApiBuy-now-pay-later installments
AlmaBNPLAlmaApiBuy-now-pay-later plans
AlfyInsurance / PaymentAlfyApiInsurance-backed payment plans

Common Patterns

All payment integrations share these characteristics:

  • API client in src/CoreBundle/Api/ handles communication with the provider
  • Configuration is stored in parameters.yml (API keys, merchant IDs, endpoints)
  • Transaction logging: payment events are recorded for auditing and reconciliation
  • Refund flow: refunds are initiated from Logidav and confirmed by the provider

:::tip Payline transaction logging Payline has the most detailed transaction logging via PaylineTransactionLogService. If you need a reference for building transaction audit trails, start with the Payline integration. :::

Error Handling

ScenarioBehavior
Payment declinedStatus recorded; customer notified
Provider timeoutRetry with backoff; log the attempt
Refund failureAlert raised; manual intervention required
Webhook delivery failureProvider retries; Logidav processes idempotently