Skip to content

IAV-1036 : prevent duplicate credit application on subscription checkout

saoud marouane a demandé de fusionner feature/IAV-1036 vers develop
  • Remove credit accumulation from checkout.session.completed webhook
  • Apply credits exclusively via invoice.payment_succeeded webhook
  • Credits now applied exactly once when payment is confirmed
  • Handle free trial exit in both webhook handlers (idempotent)
  • Maintain webhook order resilience

Fixes: Credits being applied twice (checkout + invoice webhooks)

Closes IAV-1036

Rapports de requête de fusion