Feature #11024
openFeature #11019: Subscription Updates for Cancellation by Admin and Customer
buffer days , stripe web hooks, emails and invoice sending and pdf
100%
Description
- Updated cancellation notice buffer logic to prioritize plan variant buffer days before falling back to company settings.
- Added automatic computation of `cancellationScheduledFor` cutoff dates for existing scheduled cancellations.
- Added field staff operational guidance notices indicating visits can proceed prior to the cancellation cutoff date.
- Configured Stripe webhook forwarding and environment secrets for service subscription event testing.
- Extended the subscription contract schema with tracking fields for settlement invoices, links, and payment statuses.
- Created a branded HTML email template displaying completed jobs breakdown, balance due, and a direct Stripe checkout link.
- Implemented backend services to generate Stripe hosted settlement invoices, auto-charge saved cards, and waive balances.
- Created backend REST API endpoints for sending settlement invoices, charging saved cards, and waiving balances.
- Configured Stripe webhook handling (`invoice.paid`) to automatically mark settlement balances as paid upon customer checkout.
- Added pre-cancellation settlement choices (Email Invoice Link, Charge Stored Card, Settle Later) inside the cancellation dialog.
- Added 1-click action buttons (Send Invoice Link, Charge Saved Card, Waive Balance) and status badges to the subscriber settlement card.
Subtasks
Related issues