zulip/corporate/lib
Prakhar Pratyush c9d25b2a95 stripe: Redirect to /plans if plans downgraded on /billing page visit.
When a customer with plan's status 'DOWNGRADE_AT_END_OF_FREE_TRIAL'
visits /billing page on the free-trial end date before the invoice
cron runs, the 'make_end_of_cycle_updates_if_needed' downgrades the
plan.

Earlier, when such a customer visited /billing page in this time window
it resulted in an assertion error.

This commit fixes the incorrect behaviour by redirecting to '/plans'
page in such cases.
2024-03-19 09:25:07 -07:00
..
__init__.py
activity.py remote-activity: Add column for remote server or realm creation date. 2024-02-15 10:29:12 -08:00
decorator.py python: Reformat with Ruff formatter. 2024-02-29 17:07:16 -08:00
registration.py models: Extract zerver.models.users. 2023-12-16 22:08:44 -08:00
remote_billing_util.py remote_realm: Plumb RemoteRealmBillingUser into BillingSession. 2023-12-10 16:15:28 -08:00
stripe.py stripe: Redirect to /plans if plans downgraded on /billing page visit. 2024-03-19 09:25:07 -07:00
stripe_event_handler.py upgrade: Allow payment by invoice. 2024-03-14 16:43:52 -07:00
support.py remote-support: Highlight if audit log data is stale or current. 2024-03-08 09:40:43 -08:00