Stripe Payments & SaaS Billing Systems · Lezione

Gestire pagamenti falliti e dunning

Mantenga sani i ricavi degli abbonamenti comprendendo gli addebiti ricorrenti falliti, i retry automatici di Stripe e le email di dunning che recuperano i pagamenti persi.

Lezione 4 di 413 passaggi

Gestire pagamenti falliti e dunning è una lezione Stripe Payments & SaaS Billing Systems gratuita su CoddyKit. Questa è la lezione 4 di 4. Puoi leggere la lezione completa qui gratuitamente — poi esercitati direttamente nel browser con un editor di codice integrato e un tutor IA disponibile 24/7. Fa parte del percorso di apprendimento Stripe Payments & SaaS Billing Systems, e i tuoi progressi si sincronizzano tra il web e l'app CoddyKit. Il corso Stripe Payments & SaaS Billing Systems include 4 lezioni in totale.

Parti di questa lezione non sono ancora state tradotte e vengono mostrate in inglese.

Why Recurring Payments Fail

Subscriptions renew automatically, but cards expire, run out of funds, or get blocked. These involuntary failures are a major source of churn.

The past_due Status

When a renewal charge fails, Stripe moves the subscription to past_due. The customer still has access while Stripe attempts recovery.

What Is Dunning?

Dunning is the process of retrying failed charges and notifying customers to update their payment method, recovering revenue that would otherwise be lost.

Smart Retries

Stripe's Smart Retries use machine learning to pick the best times to re-attempt a charge, instead of fixed intervals.

Configuring Retry Behavior

In Billing settings you choose how many retries to attempt and what happens after the final failure: cancel, mark unpaid, or leave past_due.

Listening for the Failure Event

The webhook invoice.payment_failed tells you a renewal failed so you can react in your app.

function onWebhook(event) {
  if (event.type === 'invoice.payment_failed') {
    return 'flag account, prompt card update';
  }
  return 'ignore';
}
console.log(onWebhook({ type: 'invoice.payment_failed' }));

Dunning Emails

Stripe can automatically send branded emails asking customers to fix their payment method, with a secure link to update the card.

Recovery Link to the Portal

Those emails point to the Customer Portal, where the user can add a new card and immediately retry the open invoice.

When Recovery Fails

After the final retry, decide the consequence: canceled ends the subscription, while unpaid keeps it for later collection. Restrict feature access accordingly.

function accessLevel(status) {
  if (status === 'active' || status === 'trialing') return 'full';
  if (status === 'past_due') return 'grace';
  return 'blocked';
}
console.log(accessLevel('past_due'));

Measuring Recovery

Track your recovery rate: the share of failed invoices that eventually get paid. Improving it directly grows revenue.

Reduce Failures Proactively

Use card-account-updater and warn customers before cards expire to prevent failures rather than only reacting to them.

Quick Check

Which webhook signals a failed recurring subscription charge?

Recap

You learned to handle failed payments and dunning:

  • past_due status and Smart Retries
  • invoice.payment_failed webhook handling
  • Dunning emails linking to the Customer Portal
  • Tracking recovery rate and preventing failures proactively
Gratis per iniziare

Impara Stripe Payments & SaaS Billing Systems con un tutor IA — gratis

Scrivi ed esegui vero codice nel tuo browser, ricevi aiuto istantaneo da un tutor IA disponibile 24/7, e riprendi da dove hai lasciato sul web o nell'app.

Corsi
12
Lezioni
48

Domande Frequenti

La lezione «Gestire pagamenti falliti e dunning» è gratuita?

Sì — il testo completo di «Gestire pagamenti falliti e dunning» è gratuito qui sul web. Per esercitarvi in modo interattivo (un editor di codice integrato e un tutor IA 24/7) e sbloccare il resto del corso Stripe Payments & SaaS Billing Systems, passa a CoddyKit PRO. Il corso Stripe Payments & SaaS Billing Systems include 4 lezioni in totale.

Cosa imparerò in «Gestire pagamenti falliti e dunning»?

Mantenga sani i ricavi degli abbonamenti comprendendo gli addebiti ricorrenti falliti, i retry automatici di Stripe e le email di dunning che recuperano i pagamenti persi. Eserciti Stripe Payments & SaaS Billing Systems con codice pratico che esegui direttamente nel browser, e un tutor IA 24/7 risponde alle tue domande mentre lavori sulla lezione.

Ho bisogno di esperienza per iniziare Stripe Payments & SaaS Billing Systems?

Non è richiesta alcuna esperienza precedente. Stripe Payments & SaaS Billing Systems su CoddyKit è strutturato per principianti e studenti avanzati, quindi puoi iniziare da qui o dall'inizio e procedere al tuo ritmo. Questa è la lezione 4 di 4.

Quanto tempo richiede la lezione «Gestire pagamenti falliti e dunning»?

La maggior parte delle lezioni CoddyKit richiede circa 5–10 minuti. Ogni lezione è breve e interattiva, quindi fai progressi costanti e riprendi esattamente da dove hai lasciato su web e app.

Posso scrivere ed eseguire codice in questa lezione Stripe Payments & SaaS Billing Systems?

Sì. Ogni lezione Stripe Payments & SaaS Billing Systems include un editor di codice integrato, quindi scrivi ed esegui codice reale direttamente nel tuo browser e ricevi feedback istantaneo dall'IA — nessuna configurazione locale necessaria.

Tutte le lezioni di questo corso

  1. Introduzione alla Subscriptions API di Stripe
  2. Creazione di prodotti e prezzi per i piani
  3. Customer Portal e gestione di base della fatturazione
  4. Gestire pagamenti falliti e dunning
← Torna a Stripe Payments & SaaS Billing Systems