Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

stripe: Set fixed price plan status within if statement.

Prakhar Pratyush928de1a74b95
diff --git a/corporate/lib/stripe.py b/corporate/lib/stripe.py
index 916ead14ee4..e92cc06fe8b 100644
--- a/corporate/lib/stripe.py
+++ b/corporate/lib/stripe.py
@@ -1218,7 +1218,6 @@ class BillingSession(ABC):
fixed_price_plan_params: Dict[str, Any] = {
"fixed_price": fixed_price_cents,
"tier": customer.required_plan_tier,
- "status": CustomerPlan.NEVER_STARTED,
}
current_plan = get_current_plan_by_customer(customer)
@@ -1228,6 +1227,7 @@ class BillingSession(ABC):
f"Configure {self.billing_entity_display_name} current plan end-date, before scheduling a new plan."
)
fixed_price_plan_params["billing_cycle_anchor"] = current_plan.end_date
+ fixed_price_plan_params["status"] = CustomerPlan.NEVER_STARTED
fixed_price_plan_params["next_invoice_date"] = current_plan.end_date
fixed_price_plan_params["invoicing_status"] = (
CustomerPlan.INVOICING_STATUS_INITIAL_INVOICE_TO_BE_SENT