clipwright/cloud
juancarlos.cavero c0ad5e0de8 feat(billing): 20-min trial cap + activate-plan-now upgrade flow
- config: TRIAL_MINUTE_CAP=20 — trial allowance capped across all plans
- metering: apply the cap in _balance while status=trialing (full minutes once active)
- billing: POST /api/billing/end-trial ends the Stripe trial immediately (charge now,
  unlock full minutes); webhook flips status→active
- frontend: hitting the cap while trialing opens TrialUpgradeModal (activate plan now)
  instead of the top-up modal; polls /api/me until active
- Legal: disclose the 20-minute trial allowance
2026-07-16 02:13:55 +02:00
..
__init__.py feat: durable video library on Cloudflare R2 (history + retention) 2026-07-14 14:56:40 +02:00
alerts.py feat: 720p->360p download fallback + SMTP email alerts 2026-07-14 14:00:02 +02:00
auth.py feat: add hosted paid mode (managed keys, Stripe trial, metering) 2026-07-14 13:04:43 +02:00
billing.py feat(billing): 20-min trial cap + activate-plan-now upgrade flow 2026-07-16 02:13:55 +02:00
config.py feat(billing): 20-min trial cap + activate-plan-now upgrade flow 2026-07-16 02:13:55 +02:00
database.py feat: add hosted paid mode (managed keys, Stripe trial, metering) 2026-07-14 13:04:43 +02:00
emails.py feat: 720p->360p download fallback + SMTP email alerts 2026-07-14 14:00:02 +02:00
managed_keys.py feat: add hosted paid mode (managed keys, Stripe trial, metering) 2026-07-14 13:04:43 +02:00
metering.py feat(billing): 20-min trial cap + activate-plan-now upgrade flow 2026-07-16 02:13:55 +02:00
models.py feat: durable video library on Cloudflare R2 (history + retention) 2026-07-14 14:56:40 +02:00
oauth.py feat: add hosted paid mode (managed keys, Stripe trial, metering) 2026-07-14 13:04:43 +02:00
social_profiles.py feat: add hosted paid mode (managed keys, Stripe trial, metering) 2026-07-14 13:04:43 +02:00
storage.py feat: durable video library on Cloudflare R2 (history + retention) 2026-07-14 14:56:40 +02:00
videos.py feat: durable video library on Cloudflare R2 (history + retention) 2026-07-14 14:56:40 +02:00