zulip/corporate/tests
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
..
stripe_fixtures stripe: Add cron-based plan invoicing to remote server billing system. 2024-01-14 15:47:55 -08:00
__init__.py
test_remote_billing.py remote_billing: Fix /self-hosted-billing/ handling for desktop app. 2024-01-15 16:50:48 -08:00
test_remote_counts.py python: Consistently use from…import for datetime. 2023-12-05 12:01:18 -08:00
test_stripe.py remote-support: Add ability to set a required plan tier for customer. 2024-01-15 03:10:04 -08:00