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.

billing: Show billing email in /billing page.

Vishnu KS5ad50b19cb73
diff --git a/corporate/tests/test_stripe.py b/corporate/tests/test_stripe.py
index 6df00d0e277..fc51e209e69 100644
--- a/corporate/tests/test_stripe.py
+++ b/corporate/tests/test_stripe.py
@@ -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)
diff --git a/templates/corporate/billing.html b/templates/corporate/billing.html
index 92b8e940215..9eae6f15ce3 100644
--- a/templates/corporate/billing.html
+++ b/templates/corporate/billing.html
@@ -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:[email protected]">[email protected]</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 %}