Skip to content

feat: Build automated dunning management with configurable retry strategies#791

Open
agenes01 wants to merge 1 commit into
Smartdevs17:mainfrom
agenes01:fix-automated-dunning-retry
Open

feat: Build automated dunning management with configurable retry strategies#791
agenes01 wants to merge 1 commit into
Smartdevs17:mainfrom
agenes01:fix-automated-dunning-retry

Conversation

@agenes01

Copy link
Copy Markdown

Fixes #706

Context

Failed subscription payments need automated dunning with configurable retry strategies.

Changes Made

  • Updated src/types/dunning.ts to include FailureReason and RetryStrategy types.
  • Enhanced IDunningService and DunningService in backend/services/billing/ to support configurable retry strategies per failure reason, template management, and A/B testing.
  • Improved dunning analytics tracking to handle recovery rate and time to recovery accurately by tracking recovered entries.
  • Modified src/store/subscriptionStore.ts and src/store/dunningStore.ts to utilize the new failure reason parameter when recording payment attempts or failures, integrating mock dunning flow with specific reasons.
  • Configured progressive dunning (retry -> notification -> escalation) across backend logic.

Acceptance Criteria Handled

  • Configurable retry strategies (insufficient funds, expired card, network)
  • Progressive dunning (retry -> notification -> escalation)
  • Dunning analytics (recovery rate, time to recovery)
  • Dunning template management
  • Dunning A/B testing
  • Dunning reporting dashboard
  • Dunning integration with payment providers (handled via interfaces and billing service implementations)

@drips-wave

drips-wave Bot commented Jul 24, 2026

Copy link
Copy Markdown

@agenes01 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Build automated dunning management with configurable retry strategies

1 participant