zulip/corporate
Mateusz Mandera ba50faced4 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 21:32:00 -08:00
..
lib zilencer: Fix community plan push notifications. 2024-01-15 16:51:09 -08:00
management billing: Do subscription management in-house instead of with Stripe Billing. 2018-12-22 13:39:30 -08:00
migrations sponsorship: Allow remote orgs to request a plan type. 2023-12-08 11:24:15 -08:00
tests remote_billing: Fix /self-hosted-billing/ handling for desktop app. 2024-01-15 21:32:00 -08:00
views portico: Add new self-hosted plans. 2023-12-15 11:03:42 -08:00
__init__.py
models.py models: Make it easier to debug current plan name and status. 2023-12-14 08:22:25 -08:00
urls.py remote_billing: Add endpoint and a helper to make deactivation links. 2023-12-12 13:31:59 -08:00