billing: Minor changes.

This commit is contained in:
Aman Agrawal 2023-11-09 11:12:44 +00:00
parent bb557d5193
commit f85bd0234a
3 changed files with 5 additions and 7 deletions

View File

@ -2558,9 +2558,7 @@ class StripeTest(StripeTestCase):
for stripe_payment_method in stripe_payment_methods:
stripe.PaymentMethod.detach(stripe_payment_method.id)
response = self.client_get("/billing/")
self.assert_in_success_response(
["payment method: <strong>No payment method on file"], response
)
self.assert_in_success_response(["No payment method on file."], response)
start_session_json_response = self.client_post(
"/json/billing/session/start_card_update_session"

View File

@ -42,7 +42,7 @@ billing_logger = logging.getLogger("corporate.stripe")
def payment_method_string(stripe_customer: stripe.Customer) -> str:
default_payment_method = stripe_customer.invoice_settings.default_payment_method
if default_payment_method is None:
return _("No payment method on file")
return _("No payment method on file.")
if default_payment_method.type == "card":
return _("{brand} ending in {last4}").format(

View File

@ -128,7 +128,7 @@
Your next invoice is due on <strong>{{ renewal_date }}</strong>.
{% endif %}
<br />
Expected charge: <strong>${{ renewal_amount }}</strong>.
Expected charge: <strong>${{ renewal_amount }}</strong>
{% endif %}
{% else %}
Your plan ends on <strong>{{ renewal_date }}</strong>, and does not renew.
@ -288,7 +288,7 @@
<div class="modal__container" role="dialog" aria-modal="true" aria-labelledby="dialog_title">
<header class="modal__header">
<h1 class="modal__title dialog_heading">
Downgrade {{ org_name }} to Zulip Cloud Free
Downgrade {{ org_name }} to Zulip Cloud Free?
</h1>
<button class="modal__close" aria-label="{{ _('Close modal') }}" data-micromodal-close></button>
</header>
@ -296,7 +296,7 @@
<p>
Your organization will be downgraded to Zulip Cloud Free at the end of the current billing
period ({{ renewal_date }}). You will lose access to unlimited search history and
<a href="/plans">other features</a>
<a href="/plans/">other features</a>
of your current plan. Are you sure you want to continue?
</p>
</main>