Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
stripe_event_handler: Fix on_free_trial parsing.
Anders Kaseorg3cae2a7cbb2e
diff --git a/corporate/lib/stripe_event_handler.py b/corporate/lib/stripe_event_handler.pyindex abad155382e..5592282b5fc 100644--- a/corporate/lib/stripe_event_handler.py+++ b/corporate/lib/stripe_event_handler.py@@ -182,7 +182,7 @@ def handle_invoice_paid_event(stripe_invoice: stripe.Invoice, invoice: Invoice)stripe_invoice_paid=True,)return- elif metadata.get("on_free_trial") and invoice.is_created_for_free_trial_upgrade:+ elif metadata.get("on_free_trial") == "True" and invoice.is_created_for_free_trial_upgrade:free_trial_plan = invoice.planassert free_trial_plan is not Noneif free_trial_plan.is_free_trial():