zulip/corporate
Mateusz Mandera fc247cba3f remote_billing: Fix /self-hosted-billing/ handling for desktop app.
When you click "Plan management", the desktop app opens
/self-hosted-billing/ in your browser immediately. So that works badly
if you're already logged into another account in the browser, since that
session will be used and it may be for a different user account than in
the desktop app, causing unintended behavior.

The solution is to replace the on click behavior for "Plan management"
in the desktop app case, to instead make a request to a new endpoint
/json/self-hosted-billing, which provides the billing access url in a
json response. The desktop app takes that URL and window.open()s it (in
the browser). And so a remote billing session for the intended user will
be obtained.
2024-01-15 16:50:48 -08:00
..
lib support-tests: Add coverage for discount actions when upgrade scheduled. 2024-01-15 03:10:04 -08:00
management billing: Do subscription management in-house instead of with Stripe Billing. 2018-12-22 13:39:30 -08:00
migrations corporate: Add required_plan_tier field to Customer model. 2024-01-15 03:10:04 -08:00
tests remote_billing: Fix /self-hosted-billing/ handling for desktop app. 2024-01-15 16:50:48 -08:00
views remote_billing: Fix handle_customer_migration_from_server_to_realms. 2024-01-12 15:28:41 -08:00
__init__.py
models.py remote-support: Add ability to set a required plan tier for customer. 2024-01-15 03:10:04 -08:00
urls.py remote_billing: Add endpoint and a helper to make deactivation links. 2023-12-12 13:31:59 -08:00