Prove it offline, then on 10% of upgrades.
Billing has no partial credit: a wrong charge is a wrong charge. So correctness is proven against ground truth before a single customer is exposed, and behavior is measured after.
- 01Offline evals: is the billing right?
- 02Canary and experiment: is it safe at scale?
- 03KPIs: is it better?
| Upgrade path | FR-01 · FR-05Amount charged | FR-01Cycle reset | FR-03Credit grant | FR-04Unused credits | FR-06Failed payment | FR-07Repeated notification |
|---|---|---|---|---|---|---|
| 01Pro Monthly → Pro Monthly | ||||||
| 02Pro Monthly → Pro Annual | ||||||
| 03Pro Annual → Pro Monthly | ||||||
| 04Pro Annual → Pro Annual | ||||||
| 05Biz Monthly → Biz Monthly | ||||||
| 06Biz Monthly → Biz Annual | ||||||
| 07Biz Annual → Biz Monthly | ||||||
| 08Biz Annual → Biz Annual | ||||||
| 09Pro Monthly → Biz Monthly | ||||||
| 10Pro Monthly → Biz Annual | ||||||
| 11Pro Annual → Biz Monthly | ||||||
| 12Pro Annual → Biz Annual | ||||||
| 13Biz Monthly → Pro Monthly | ||||||
| 14Biz Monthly → Pro Annual | ||||||
| 15Biz Annual → Pro Monthly | ||||||
| 16Biz Annual → Pro Annual |
— / 96
Running against the policy as specified. Inject a regression to see what the suite catches.
Run the suite, then select a cell to see expected against actual.
A hand-written answer key
Expected charge, credits and renewal date for each path, worked out from the PRD's rules, not from the code under test.
One fixed setup
Subscribed Jan 15, upgrading Nov 14, 60% of credits spent, using the PRD's own example plans for every path.
A check per requirement
Each column guards a functional requirement, including the two that only show up when something goes wrong.
The suite runs live in this page against a reference implementation of the PRD's rules. The same cases are the acceptance tests for the Stripe build (PRD §8: all critical offline evals pass).
Rollout through Confidence
From test accounts to 10% of eligible upgrades.
Confidence, Spotify's feature-flag and experimentation platform, assigns each customer to treatment or control. Exposure grows only when the stage before it is clean.
What this stage is for
Treatment gets reset-on-upgrade; the other 90% keep the previous behavior.
Moves on when
Enough evidence on billings, tickets and conversion.
Assignment is consistent per customer across repeated upgrade attempts.
Targeting lives in Confidence; the creating team owns the flag.
Rollback stops new exposure without disturbing existing subscriptions.
Outcomes are captured per upgrade path, not only in aggregate.
KPI dashboard
Two primary metrics, five early warnings, six guardrails.
The experiment has not run, so these readouts are simulated: one for each way it could end. Scrub the weeks to see why renewal guardrails need more than one billing period.
Primary · Increase
Net billings per eligible upgrader
+8.4%
Customer-level net billings over a comparable observation period, including abandoned upgrades.
Primary · Decrease
Upgrade-related ticket rate
−33.9%
Relevant support tickets per 1,000 completed upgrades. ≈12.6 per 1,000 before.
Upgrade checkout completion
−1.0%
Within toleranceNo worse than −3%
Payment success
−0.1%
Within toleranceNo worse than −2%
Upgrade abandonment
+0.5%
Within toleranceNo worse than +5%
Billing support contacts
−29.0%
Clear dropDecrease
Upgrade timing
−2.4%
Tracked, not judgedObserve
Completed renewals
−0.3%
Within toleranceNo worse than −2%
Refunds and chargebacks
−7.6%
Within toleranceNo worse than +10%
Credit consumption and cost
+1.5%
Within toleranceNo worse than +5%
Incorrect or duplicate charges
0
None foundZero
Incorrect credit grants
0
None foundZero
Subscription-state mismatches
0
None foundZero
Metric names, definitions and desired directions: PRD §6. Every effect size shown is simulated. Ticket baseline: 1,455 tickets over 60 days ÷ two 30-day cohorts of 57,947 upgrades.
