mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 21:43:21 +00:00
stripe: Fix customer charged for upgrade during free trial.
I accidentally free trials for both cloud and self hosted enabled while testing, hence didn't catch it. This mostly involves fixing `is_free_trial_offer_enabled` to return the correct value and providing it the correct input.
This commit is contained in:
@@ -392,7 +392,7 @@ def login_or_register_remote_user(request: HttpRequest, result: ExternalAuthResu
|
||||
if is_realm_creation is not None and settings.BILLING_ENABLED:
|
||||
from corporate.lib.stripe import is_free_trial_offer_enabled
|
||||
|
||||
if is_free_trial_offer_enabled():
|
||||
if is_free_trial_offer_enabled(False):
|
||||
redirect_to = reverse("upgrade_page")
|
||||
|
||||
redirect_to = get_safe_redirect_to(redirect_to, user_profile.realm.uri)
|
||||
|
||||
Reference in New Issue
Block a user