mirror of https://github.com/zulip/zulip.git
stripe: Provide min license count to template as per tier.
This commit is contained in:
parent
02257b8cbf
commit
1326619b77
|
@ -622,6 +622,7 @@ class UpgradePageContext(TypedDict):
|
|||
is_demo_organization: bool
|
||||
manual_license_management: bool
|
||||
using_min_licenses_for_plan: bool
|
||||
min_licenses_for_plan: int
|
||||
page_params: UpgradePageParams
|
||||
payment_method: Optional[str]
|
||||
plan: str
|
||||
|
@ -1782,6 +1783,7 @@ class BillingSession(ABC):
|
|||
"remote_server_legacy_plan_end_date": remote_server_legacy_plan_end_date,
|
||||
"legacy_remote_server_next_plan_name": legacy_remote_server_next_plan_name,
|
||||
"using_min_licenses_for_plan": using_min_licenses_for_plan,
|
||||
"min_licenses_for_plan": min_licenses_for_plan,
|
||||
}
|
||||
return context
|
||||
|
||||
|
@ -1914,6 +1916,7 @@ class BillingSession(ABC):
|
|||
"billing_base_url": self.billing_base_url,
|
||||
},
|
||||
"using_min_licenses_for_plan": using_min_licenses_for_plan,
|
||||
"min_licenses_for_plan": min_licenses_for_plan,
|
||||
"payment_method": current_payment_method,
|
||||
"plan": CustomerPlan.name_from_tier(tier),
|
||||
"salt": salt,
|
||||
|
|
|
@ -253,7 +253,7 @@
|
|||
{% endif %}
|
||||
{% if using_min_licenses_for_plan %}
|
||||
<br />
|
||||
<i>Minimum purchase for this plan: 10 licenses</i>
|
||||
<i>Minimum purchase for this plan: {{ min_licenses_for_plan }} licenses</i>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
|
|
@ -140,7 +140,7 @@
|
|||
{% endif %}
|
||||
{% if not manual_license_management and using_min_licenses_for_plan %}
|
||||
<br />
|
||||
<i>Minimum purchase for this plan: 10 licenses</i>
|
||||
<i>Minimum purchase for this plan: {{ min_licenses_for_plan }} licenses</i>
|
||||
{% endif %}
|
||||
<h1>$<span class="due-today-price"></span></h1>
|
||||
{% if free_trial_days %}
|
||||
|
|
Loading…
Reference in New Issue