fix(premium): drop the grace period after a voluntary cancel (#3071)

This commit is contained in:
Hampus
2026-09-30 21:03:25 +02:00
committed by GitHub
parent 5e0806f479
commit 6e2f90b03c
38 changed files with 384 additions and 387 deletions
@@ -749,8 +749,7 @@ The window this operation ends runs to `premium_grace_ends_at`. [Receive Stripe
| --- | --- |
| A renewal payment fails | The start of the unpaid period plus 7 days for a monthly plan or 14 days for a yearly plan |
| The subscription was cancelled for non-payment | The same deadline, never extended |
| The subscription ran to its recorded premium end | The subscription end plus 3 days |
| The subscription ended early | The subscription end itself, which leaves no window for this route to close |
| The subscription ended for any other reason | The subscription end itself, which leaves no window for this route to close |
| The early cancellation is already recorded | Nothing |
This route requires an explicit `premium_grace_ends_at`. It does not end the default 3-day grace period used when that field is absent.