2018-06-29 16:51:36 +02:00
|
|
|
{% extends "zerver/portico.html" %}
|
2019-10-23 07:46:34 +02:00
|
|
|
{% set entrypoint = "billing" %}
|
2018-01-13 19:38:13 +01:00
|
|
|
|
2022-09-06 12:04:03 +02:00
|
|
|
{% block title %}
|
|
|
|
<title>{{ _("Billing") }} | Zulip</title>
|
|
|
|
{% endblock %}
|
|
|
|
|
2018-01-13 19:38:13 +01:00
|
|
|
{% block customhead %}
|
2021-04-21 00:46:14 +02:00
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
2018-01-13 19:38:13 +01:00
|
|
|
{% endblock %}
|
|
|
|
|
2018-03-31 04:13:44 +02:00
|
|
|
{% block content %}
|
2018-06-29 16:51:36 +02:00
|
|
|
|
2018-03-31 04:13:44 +02:00
|
|
|
<div class="app portico-page">
|
2018-01-13 19:38:13 +01:00
|
|
|
|
2018-06-29 16:51:36 +02:00
|
|
|
{% include 'zerver/billing_nav.html' %}
|
|
|
|
|
2023-05-10 21:11:45 +02:00
|
|
|
<div class="billing-upgrade-page">
|
2018-06-29 16:51:36 +02:00
|
|
|
<div class="hero small-hero"></div>
|
|
|
|
|
|
|
|
<div class="page-content">
|
|
|
|
<div class="main">
|
2018-09-06 15:14:54 +02:00
|
|
|
<div class="alert alert-danger" id="error-message-box"></div>
|
2018-06-29 16:51:36 +02:00
|
|
|
<h1>{{ _("Billing") }}</h1>
|
2020-04-03 16:17:34 +02:00
|
|
|
{% if admin_access and has_active_plan %}
|
2018-06-29 16:51:36 +02:00
|
|
|
<ul class="nav nav-tabs" id="billing-tabs">
|
2018-10-31 10:36:30 +01:00
|
|
|
<li class="active"><a data-toggle="tab" href="#overview">Overview</a></li>
|
2020-10-23 02:43:28 +02:00
|
|
|
<li><a data-toggle="tab" href="#payment-method">Payment method</a></li>
|
2020-04-24 17:38:13 +02:00
|
|
|
<li><a data-toggle="tab" href="#settings">Settings</a></li>
|
2023-02-13 20:40:51 +01:00
|
|
|
<li><a data-toggle="tab" href="#sponsorship">💚 Request sponsorship</a></li>
|
2018-06-29 16:51:36 +02:00
|
|
|
</ul>
|
|
|
|
|
2021-04-21 00:46:14 +02:00
|
|
|
<input type="hidden" name="csrfmiddlewaretoken" value="{{ csrf_token }}" />
|
2018-06-29 16:51:36 +02:00
|
|
|
<div class="tab-content">
|
|
|
|
<div class="tab-pane active" id="overview">
|
2020-04-23 20:10:15 +02:00
|
|
|
{% if free_trial %}
|
|
|
|
<p>Your current plan is <strong>{{ plan_name }} Free Trial</strong>.</p>
|
|
|
|
{% else %}
|
2018-12-23 09:10:57 +01:00
|
|
|
<p>Your current plan is <strong>{{ plan_name }}</strong>.</p>
|
2020-04-23 20:10:15 +02:00
|
|
|
{% endif %}
|
2020-06-12 19:35:26 +02:00
|
|
|
<p>
|
2020-12-17 16:34:24 +01:00
|
|
|
You are using <strong>{{ seat_count }} of {{ licenses }} licenses</strong>.
|
2020-06-12 19:35:26 +02:00
|
|
|
{% if automanage_licenses %}
|
|
|
|
Licenses are automatically managed by Zulip; when you add or deactivate a user, the number of
|
|
|
|
licenses will be immediately updated to reflect your new usage.
|
|
|
|
{% else %}
|
|
|
|
Licenses are manually managed. You will not be able to add new users to your organization once
|
|
|
|
you are using all of your licenses.
|
|
|
|
{% endif %}
|
|
|
|
</p>
|
2018-12-23 09:10:57 +01:00
|
|
|
<p>
|
2019-01-29 16:38:24 +01:00
|
|
|
{% if renewal_amount %}
|
2020-04-23 20:10:15 +02:00
|
|
|
{% if free_trial %}
|
|
|
|
Your plan will be upgraded to <strong>{{ plan_name }}</strong> on <strong>{{ renewal_date }}</strong> for
|
|
|
|
<strong>${{ renewal_amount }}</strong>.
|
2020-04-24 17:38:13 +02:00
|
|
|
{% elif downgrade_at_end_of_cycle %}
|
2023-09-06 18:52:48 +02:00
|
|
|
Your plan will be downgraded to <strong>Zulip Free</strong> on <strong>{{ renewal_date }}</strong>.
|
2020-06-15 20:09:24 +02:00
|
|
|
{% elif switch_to_annual_at_end_of_cycle %}
|
|
|
|
Your plan will be switched from monthly to annual billing on <strong>{{ renewal_date }}</strong>.
|
2020-04-23 20:10:15 +02:00
|
|
|
{% else %}
|
|
|
|
Your plan will renew on <strong>{{ renewal_date }}</strong> for
|
|
|
|
<strong>${{ renewal_amount }}</strong>.
|
|
|
|
{% endif %}
|
2019-01-29 16:38:24 +01:00
|
|
|
{% else %}
|
2020-04-23 20:10:15 +02:00
|
|
|
Your plan ends on <strong>{{ renewal_date }}</strong>, and does not renew.
|
2019-01-29 16:38:24 +01:00
|
|
|
{% endif %}
|
2018-12-23 09:10:57 +01:00
|
|
|
</p>
|
2018-06-29 16:51:36 +02:00
|
|
|
</div>
|
2021-08-29 15:33:29 +02:00
|
|
|
<div class="tab-pane" id="payment-method">
|
2018-12-26 12:35:47 +01:00
|
|
|
<div id="cardchange-error" class="alert alert-danger"></div>
|
|
|
|
<div id="cardchange-input-section">
|
|
|
|
<form id="cardchange-form">
|
2021-05-14 16:48:00 +02:00
|
|
|
<p>Billing email: <strong>{{ stripe_email }}</strong></p>
|
2018-12-26 12:35:47 +01:00
|
|
|
<p>Current payment method: <strong>{{ payment_method }}</strong></p>
|
|
|
|
{% if charge_automatically %}
|
2021-08-29 15:33:29 +02:00
|
|
|
<button class="btn-info" id="update-card-button" class="stripe-button-el">Update card</button>
|
2018-12-26 12:35:47 +01:00
|
|
|
{% endif %}
|
|
|
|
</form>
|
2018-09-06 15:14:54 +02:00
|
|
|
</div>
|
2018-12-26 12:35:47 +01:00
|
|
|
<div id="cardchange-loading">
|
2018-12-07 18:43:22 +01:00
|
|
|
<div class="zulip-loading-logo">
|
2020-07-16 04:59:13 +02:00
|
|
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 773.12 773.12">
|
|
|
|
<circle cx="386.56" cy="386.56" r="386.56"/>
|
|
|
|
<path d="M566.66 527.25c0 33.03-24.23 60.05-53.84 60.05H260.29c-29.61 0-53.84-27.02-53.84-60.05 0-20.22 9.09-38.2 22.93-49.09l134.37-120c2.5-2.14 5.74 1.31 3.94 4.19l-49.29 98.69c-1.38 2.76.41 6.16 3.25 6.16h191.18c29.61 0 53.83 27.03 53.83 60.05zm0-281.39c0 20.22-9.09 38.2-22.93 49.09l-134.37 120c-2.5 2.14-5.74-1.31-3.94-4.19l49.29-98.69c1.38-2.76-.41-6.16-3.25-6.16H260.29c-29.61 0-53.84-27.02-53.84-60.05s24.23-60.05 53.84-60.05h252.54c29.61 0 53.83 27.02 53.83 60.05z"/>
|
2018-09-06 15:14:54 +02:00
|
|
|
</svg>
|
|
|
|
</div>
|
2018-12-26 12:35:47 +01:00
|
|
|
<div id="cardchange_loading_indicator"></div>
|
2018-09-06 15:14:54 +02:00
|
|
|
</div>
|
2018-12-26 12:35:47 +01:00
|
|
|
<div id="cardchange-success" class="alert alert-success">
|
2021-08-29 15:33:29 +02:00
|
|
|
Redirecting to Stripe checkout page for updating Card details.
|
2018-09-06 15:14:54 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2020-12-23 17:08:27 +01:00
|
|
|
|
2020-04-24 17:38:13 +02:00
|
|
|
<div class="tab-pane" id="settings">
|
2020-12-23 17:08:27 +01:00
|
|
|
{% if not automanage_licenses and not downgrade_at_end_of_cycle %}
|
|
|
|
<div id="licensechange-error" class="alert alert-danger"></div>
|
|
|
|
<div id="licensechange-input-section" data-licenses="{{ licenses }}">
|
|
|
|
<form id="licensechange-form">
|
|
|
|
<h3>Licenses</h3>
|
|
|
|
<h4>Number of licenses in the current billing period</h4>
|
|
|
|
<p>
|
|
|
|
You can only increase the number of licenses.
|
|
|
|
</p>
|
|
|
|
<input min="{{ licenses }}" type="number" name="licenses" value="{{ licenses }}" autocomplete="off" id="new_licenses_input" required/>
|
|
|
|
<br />
|
|
|
|
<button class="btn-info" id="update-licenses-button">Update</button>
|
|
|
|
<br />
|
|
|
|
<br />
|
|
|
|
<h4>Licenses in next renewal</h4>
|
|
|
|
<p>
|
|
|
|
You can increase or decrease the number of licenses.
|
|
|
|
</p>
|
|
|
|
<input type="number" name="licenses_at_next_renewal" value="{{ licenses_at_next_renewal }}" autocomplete="off" id="licenses_at_next_renewal_input"/>
|
|
|
|
<br />
|
|
|
|
<button class="btn-info" id="update-licenses-at-next-renewal-button">Update</button>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
<div id="licensechange-loading">
|
|
|
|
<div class="zulip-loading-logo">
|
|
|
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 773.12 773.12">
|
|
|
|
<circle cx="386.56" cy="386.56" r="386.56"/>
|
|
|
|
<path d="M566.66 527.25c0 33.03-24.23 60.05-53.84 60.05H260.29c-29.61 0-53.84-27.02-53.84-60.05 0-20.22 9.09-38.2 22.93-49.09l134.37-120c2.5-2.14 5.74 1.31 3.94 4.19l-49.29 98.69c-1.38 2.76.41 6.16 3.25 6.16h191.18c29.61 0 53.83 27.03 53.83 60.05zm0-281.39c0 20.22-9.09 38.2-22.93 49.09l-134.37 120c-2.5 2.14-5.74-1.31-3.94-4.19l49.29-98.69c1.38-2.76-.41-6.16-3.25-6.16H260.29c-29.61 0-53.84-27.02-53.84-60.05s24.23-60.05 53.84-60.05h252.54c29.61 0 53.83 27.02 53.83 60.05z"/>
|
|
|
|
</svg>
|
|
|
|
</div>
|
|
|
|
<div id="licensechange_loading_indicator"></div>
|
|
|
|
</div>
|
|
|
|
<div id="licensechange-success" class="alert alert-success">
|
|
|
|
Plan updated. The page will now reload.
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
|
2020-04-24 17:38:13 +02:00
|
|
|
<div id="planchange-error" class="alert alert-danger"></div>
|
|
|
|
<div id="planchange-input-section">
|
|
|
|
<form id="planchange-form">
|
|
|
|
<h3>Downgrade</h3>
|
|
|
|
{% if free_trial %}
|
|
|
|
<p>
|
2023-09-06 18:52:48 +02:00
|
|
|
End Free Trial and downgrade plan to <strong>Zulip Free</strong>.
|
2020-04-24 17:38:13 +02:00
|
|
|
</p>
|
|
|
|
<input name="status" type="hidden" value="{{ CustomerPlan.ENDED }}" />
|
|
|
|
<button class="btn-danger" id="change-plan-status">End free trial</button>
|
|
|
|
{% else %}
|
|
|
|
{% if downgrade_at_end_of_cycle %}
|
|
|
|
<p>
|
|
|
|
You plan is scheduled for downgrade on <strong>{{ renewal_date }}</strong>.
|
|
|
|
</p>
|
|
|
|
<input name="status" type="hidden" value="{{ CustomerPlan.ACTIVE }}" />
|
|
|
|
<button class="btn-info" id="change-plan-status">Cancel downgrade</button>
|
|
|
|
{% else %}
|
|
|
|
<p>
|
2023-09-06 18:52:48 +02:00
|
|
|
Downgrade to <strong>Zulip Free</strong> at the end of current billing period.
|
2020-04-24 17:38:13 +02:00
|
|
|
</p>
|
|
|
|
<input name="status" type="hidden" value="{{ CustomerPlan.DOWNGRADE_AT_END_OF_CYCLE }}" />
|
|
|
|
<button class="btn-danger" id="change-plan-status">Start downgrade process</button>
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
<div id="planchange-loading">
|
|
|
|
<div class="zulip-loading-logo">
|
2020-07-16 04:59:13 +02:00
|
|
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 773.12 773.12">
|
|
|
|
<circle cx="386.56" cy="386.56" r="386.56"/>
|
|
|
|
<path d="M566.66 527.25c0 33.03-24.23 60.05-53.84 60.05H260.29c-29.61 0-53.84-27.02-53.84-60.05 0-20.22 9.09-38.2 22.93-49.09l134.37-120c2.5-2.14 5.74 1.31 3.94 4.19l-49.29 98.69c-1.38 2.76.41 6.16 3.25 6.16h191.18c29.61 0 53.83 27.03 53.83 60.05zm0-281.39c0 20.22-9.09 38.2-22.93 49.09l-134.37 120c-2.5 2.14-5.74-1.31-3.94-4.19l49.29-98.69c1.38-2.76-.41-6.16-3.25-6.16H260.29c-29.61 0-53.84-27.02-53.84-60.05s24.23-60.05 53.84-60.05h252.54c29.61 0 53.83 27.02 53.83 60.05z"/>
|
2020-04-24 17:38:13 +02:00
|
|
|
</svg>
|
|
|
|
</div>
|
|
|
|
<div id="planchange_loading_indicator"></div>
|
|
|
|
</div>
|
|
|
|
<div id="planchange-success" class="alert alert-success">
|
|
|
|
Plan updated. The page will now reload.
|
|
|
|
</div>
|
2020-12-23 17:08:27 +01:00
|
|
|
<div class="tab-pane" id="loading">
|
|
|
|
</div>
|
2018-06-29 16:51:36 +02:00
|
|
|
</div>
|
2023-02-13 20:40:51 +01:00
|
|
|
|
|
|
|
{% include "corporate/sponsorship.html" %}
|
2018-06-29 16:51:36 +02:00
|
|
|
</div>
|
2020-12-23 17:08:27 +01:00
|
|
|
|
2020-05-22 15:42:46 +02:00
|
|
|
<div id="goto-zulip-organization-link">
|
|
|
|
{% if onboarding %}
|
2021-04-21 00:46:14 +02:00
|
|
|
<br />
|
2020-05-22 15:42:46 +02:00
|
|
|
<h3>
|
|
|
|
<b><a href="/">Go to your Zulip organization</a></b>
|
|
|
|
</h3>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
2021-04-21 00:46:14 +02:00
|
|
|
<hr />
|
2018-06-29 16:51:36 +02:00
|
|
|
<div class="support-link">
|
2018-12-23 09:10:57 +01:00
|
|
|
<p>
|
2023-03-26 21:58:21 +02:00
|
|
|
<a href="mailto:support@zulip.com">Contact Zulip support</a>
|
2021-05-14 16:48:00 +02:00
|
|
|
for billing history or to make changes to your subscription or billing email.
|
2018-12-23 09:10:57 +01:00
|
|
|
</p>
|
2018-06-29 16:51:36 +02:00
|
|
|
</div>
|
2020-04-03 16:17:34 +02:00
|
|
|
{% elif admin_access and not has_active_plan %}
|
|
|
|
<div class="tab-content">
|
2020-06-09 12:24:32 +02:00
|
|
|
{% if sponsorship_pending %}
|
|
|
|
<h3>Your organization has requested sponsored or discounted hosting.</h3>
|
2023-02-13 20:49:56 +01:00
|
|
|
<br />
|
|
|
|
Please <a href="mailto:support@zulip.com">contact Zulip support</a> if you have any questions or concerns.
|
2020-08-21 14:45:43 +02:00
|
|
|
{% elif is_sponsored %}
|
|
|
|
<center>
|
|
|
|
<p>
|
2022-02-05 08:29:54 +01:00
|
|
|
<h3>💚 Your organization is fully sponsored and is on the <b>Zulip Cloud Standard</b> plan.</h3>
|
2020-08-21 14:45:43 +02:00
|
|
|
</p>
|
|
|
|
</center>
|
2020-06-09 12:24:32 +02:00
|
|
|
{% else %}
|
2020-04-03 16:17:34 +02:00
|
|
|
<center>
|
|
|
|
<p>
|
|
|
|
<h2>Your organization is on the <b>Zulip Free</b> plan.</h2>
|
2023-03-22 20:05:41 +01:00
|
|
|
<a href="/upgrade/">
|
2020-04-03 16:17:34 +02:00
|
|
|
<button type="submit" class="button green">Upgrade to Standard</button>
|
|
|
|
</a>
|
2023-03-23 03:53:14 +01:00
|
|
|
<a href="/plans/">
|
2020-04-03 16:17:34 +02:00
|
|
|
<button type="submit">View all plans</button>
|
|
|
|
</a>
|
|
|
|
</p>
|
|
|
|
</center>
|
2020-06-09 12:24:32 +02:00
|
|
|
{% endif %}
|
2020-04-03 16:17:34 +02:00
|
|
|
</div>
|
2023-02-13 20:49:56 +01:00
|
|
|
{% if not sponsorship_pending %}
|
|
|
|
{# In the other case, we're displaying a different message about contacting support. #}
|
2020-04-03 16:17:34 +02:00
|
|
|
<div class="support-link">
|
|
|
|
<p>
|
2023-03-26 21:58:21 +02:00
|
|
|
<a href="mailto:support@zulip.com">Contact Zulip support</a> for billing history.
|
2020-04-03 16:17:34 +02:00
|
|
|
</p>
|
|
|
|
</div>
|
2023-02-13 20:49:56 +01:00
|
|
|
{% endif %}
|
2018-06-29 16:51:36 +02:00
|
|
|
{% else %}
|
|
|
|
<p>
|
2020-07-14 14:40:39 +02:00
|
|
|
You must be an organization owner or a billing administrator to view this page.
|
2018-06-29 16:51:36 +02:00
|
|
|
</p>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
</div>
|
2018-01-13 19:38:13 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2020-12-23 17:08:27 +01:00
|
|
|
|
|
|
|
|
|
|
|
<div id="confirm-licenses-modal" class="modal modal-bg hide fade" tabindex="-1" role="dialog" aria-labelledby="deactivation_self_modal_label" aria-hidden="true">
|
|
|
|
<div class="modal-header">
|
|
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="{{ _('Close') }}"><span aria-hidden="true">×</span></button>
|
|
|
|
<h3 id="deactivation_self_modal_label">Confirm license increase</h3>
|
|
|
|
</div>
|
|
|
|
<div class="modal-body">
|
|
|
|
<p>
|
|
|
|
Are you sure you want to increase the licenses from
|
|
|
|
<b><span id="current_license_count_holder"></span></b> to
|
|
|
|
<b><span id="new_license_count_holder"></span></b>?
|
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
You would be charged for the additional licenses.
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
|
|
|
<button class="button" data-dismiss="modal">Cancel</button>
|
|
|
|
<button class="button btn-success rounded" id="confirm-license-update-button" data-dismiss="modal" aria-hidden="true">
|
|
|
|
<span id="confirm-license-update">Confirm</span>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
2018-01-13 19:38:13 +01:00
|
|
|
{% endblock %}
|