SurfSense/surfsense_backend/app/config
Vonic 20c4f128bb feat(story-5.3): add Stripe webhook subscription lifecycle handlers
- Add migration 125: subscription_current_period_end column
- Add PLAN_LIMITS config (free/pro_monthly/pro_yearly token + pages limits)
- Add subscription webhook handlers: created/updated/deleted, invoice payment
- Handle checkout.session.completed for subscription mode separately from PAYG
- Idempotency: subscription_id + status + plan_id + period_end guard
- pages_limit upgraded on activation, gracefully downgraded on cancel
- Token reset on subscription_create and subscription_cycle billing events
- Period_end forward-only guard against out-of-order webhook delivery

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-15 00:43:07 +07:00
..
__init__.py feat(story-5.3): add Stripe webhook subscription lifecycle handlers 2026-04-15 00:43:07 +07:00
global_llm_config.example.yaml feat(story-3.5): add cloud-mode LLM model selection with token quota enforcement 2026-04-14 17:01:21 +07:00
model_list_fallback.json feat: added improved llm model selector 2026-02-20 14:28:01 -08:00
uvicorn.py Fixed all ruff lint and formatting errors 2025-07-24 14:43:48 -07:00
vision_model_list_fallback.json Add dynamic vision model list from OpenRouter with combobox selector 2026-04-07 23:39:52 +02:00