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 the real billing contact on the paid-invoice notice.

Aman Agrawalb1fecb31f60a
diff --git a/corporate/tests/test_stripe.py b/corporate/tests/test_stripe.py
index 8aefb5bcece..483b26803ba 100644
--- a/corporate/tests/test_stripe.py
+++ b/corporate/tests/test_stripe.py
@@ -1029,6 +1029,10 @@ class StripeTest(StripeTestCase):
response = self.client_get("/billing/")
self.assert_in_success_response(["You have no outstanding invoices."], response)
+ self.assert_in_success_response(
+ [f"An invoice will be sent to <b>{user.delivery_email}</b> on the same day."],
+ response,
+ )
invoice_plans_as_needed(free_trial_end_date)
last_renewal_ledger.refresh_from_db()
diff --git a/templates/corporate/billing/billing.html b/templates/corporate/billing/billing.html
index 2aa757db17a..65f2039b69e 100644
--- a/templates/corporate/billing/billing.html
+++ b/templates/corporate/billing/billing.html
@@ -266,7 +266,7 @@
{% else %}
{% if free_trial %}
{% if has_paid_invoice_for_free_trial %}
- You have no outstanding invoices. Your next plan renewal date is <b>{{ free_trial_next_renewal_date_after_invoice_paid }}</b>. An invoice will be sent to <b>[email protected]</b> on the same day.
+ You have no outstanding invoices. Your next plan renewal date is <b>{{ free_trial_next_renewal_date_after_invoice_paid }}</b>. An invoice will be sent to <b>{{ stripe_email }}</b> on the same day.
{% else %}
To ensure continuous access to {{ plan_name }}, please pay your <a href="{{ billing_base_url }}/invoices/">invoice</a> before the end of your trial.
Your free trial ends on <br /><strong>{{ renewal_date }}</strong>.