billing: Show billing email in /billing page.

This commit is contained in:
Vishnu KS 2021-05-14 20:18:00 +05:30 committed by Tim Abbott
parent 80a30c83e5
commit 5ad50b19cb
2 changed files with 6 additions and 1 deletions

View File

@ -634,6 +634,7 @@ class StripeTest(StripeTestCase):
"Your plan will renew on",
"January 2, 2013",
f"${80 * self.seat_count}.00",
f"Billing email: <strong>{user.email}</strong>",
"Visa ending in 4242",
"Update card",
]:
@ -771,6 +772,7 @@ class StripeTest(StripeTestCase):
"Your plan will renew on",
"January 2, 2013",
"$9,840.00", # 9840 = 80 * 123
f"Billing email: <strong>{user.email}</strong>",
"Billed by invoice",
"You can only increase the number of licenses.",
"Number of licenses",
@ -878,6 +880,7 @@ class StripeTest(StripeTestCase):
"Your plan will be upgraded to",
"March 2, 2012",
f"${80 * self.seat_count}.00",
f"Billing email: <strong>{user.email}</strong>",
"Visa ending in 4242",
"Update card",
]:
@ -1078,6 +1081,7 @@ class StripeTest(StripeTestCase):
"Your plan will be upgraded to",
"March 2, 2012",
f"{80 * 123:,.2f}",
f"Billing email: <strong>{user.email}</strong>",
"Billed by invoice",
]:
self.assert_in_response(substring, response)

View File

@ -66,6 +66,7 @@
<div id="cardchange-error" class="alert alert-danger"></div>
<div id="cardchange-input-section">
<form id="cardchange-form">
<p>Billing email: <strong>{{ stripe_email }}</strong></p>
<p>Current payment method: <strong>{{ payment_method }}</strong></p>
{% if charge_automatically %}
<button id="update-card-button" class="stripe-button-el">
@ -182,7 +183,7 @@
<div class="support-link">
<p>
Contact <a href="mailto:support@zulip.com">support@zulip.com</a>
for billing history or to make changes to your subscription.
for billing history or to make changes to your subscription or billing email.
</p>
</div>
{% elif admin_access and not has_active_plan %}