Good call putting invoice.paid before subscription.created in a runnable test. It's an easy one to drop without noticing. The failed side has a similar trap: invoice.payment_failed puts the subscription in past_due, and when retries run out Stripe applies whatever ending is set under Retries, so the access check has to follow that too. I wrote up how that ending ends up counted as churn here: retryfix.com/blog/what-is-involuntary-churn
Paul Hartness
Good call putting invoice.paid before subscription.created in a runnable test. It's an easy one to drop without noticing. The failed side has a similar trap: invoice.payment_failed puts the subscription in past_due, and when retries run out Stripe applies whatever ending is set under Retries, so the access check has to follow that too. I wrote up how that ending ends up counted as churn here: retryfix.com/blog/what-is-involuntary-churn