> ## Documentation Index
> Fetch the complete documentation index at: https://docs.airdun.com/llms.txt
> Use this file to discover all available pages before exploring further.

# How Airdun Automatically Recovers Your Failed Payments

> Airdun detects a failed payment, builds a recovery case, designs a multi-channel strategy, and executes it until the payment succeeds or the case is exhausted.

When a payment fails in Stripe, Airdun detects the failure, assembles a recovery case, designs a strategy for that specific customer and failure type, then executes every message and retry until the payment succeeds — or the case is exhausted. The process runs without intervention once the autopilot is on.

<Steps>
  <Step title="Failed payment detected">
    Airdun listens to your Stripe webhook stream. Every `payment_failed` event is caught when Stripe reports it — no polling delay, no manual import.
  </Step>

  <Step title="Recovery case created">
    Airdun opens a case and enriches it with the failure reason and Stripe error code, customer identity and language, subscription value, product-usage signals, available outreach channels, and patterns from similar cases processed across the platform.
  </Step>

  <Step title="Recovery strategy designed">
    The algorithm weighs the case context — failure type, customer history, channel performance, timezone — to build a multi-touchpoint plan. Each touchpoint is ordered, timed, and assigned to a channel.
  </Step>

  <Step title="Plan executed">
    Each message goes out in the customer's language, at a sensible local time, with a direct link to a one-click card-update flow. The sequence stops the moment payment succeeds.
  </Step>
</Steps>

## Properties of the model

<CardGroup cols={2}>
  <Card title="Per-case personalization" icon="user-check">
    Each case is evaluated individually. Failure reason, customer value, language, and usage patterns shape the messages and the timing.
  </Card>

  <Card title="Multi-channel orchestration" icon="shuffle">
    Email, in-app messaging, SMS, WhatsApp, and Stripe retries are sequenced in a single plan, with the channel order chosen per case.
  </Card>

  <Card title="Auto-stop on recovery" icon="circle-stop">
    When a payment succeeds, Airdun closes the case and cancels any pending messages.
  </Card>

  <Card title="Communal learning" icon="chart-line">
    Case outcomes across all connected accounts feed back into the algorithm in anonymized form. See [Recovery Strategy](/how-it-works/recovery-strategy).
  </Card>
</CardGroup>
