Stripe is the source of truth for failed-payment retries, hosted payment recovery, and final invoice status. Kommander listens for Stripe events and reflects the subscription state locally so product access can be reviewed consistently.

Event Flow

Local Handling

Stripe eventKommander behavior
invoice.payment_failedRecords failure state, syncs subscription details, and sends the failed-payment email.
invoice.payment_succeededSyncs successful payment state and updates the local subscription snapshot.
customer.subscription.updatedReflects Stripe status such as trialing, active, past_due, or cancellation-related states.
customer.subscription.deletedMarks the local subscription canceled and clears stale Stripe item IDs from linked organizations.

Recovery Path

  1. The customer updates the payment method in the Stripe portal or in the in-app payment-method screen.
  2. Stripe retries according to the Stripe account’s retry configuration.
  3. Webhooks sync the resulting invoice and subscription state back to Kommander.
  4. Admins review invoice status and subscription status before escalating suspension or support action.

Grace And Suspension Guidance

Kommander should treat payment failure as a billing state that requires review, not as proof that access must immediately stop. Use Stripe invoice status, subscription status, customer communication history, and contract terms before suspending production assistants.

StateRecommended handling
trialingAllow normal trial access until the trial ends or payment setup fails.
activeAllow normal access.
past_dueKeep access under review and guide the customer to update payment details.
canceled or deleted subscriptionRemove paid-channel entitlement unless enterprise or manual override terms apply.

Enterprise accounts may use out-of-band collections and should follow the contracted commercial process rather than Stripe dunning defaults.