From 3e550364c60dae574e842967c32e704d5bfd61ce Mon Sep 17 00:00:00 2001 From: Lauryn Menard Date: Thu, 9 Nov 2023 19:06:35 +0100 Subject: [PATCH] corporate: Use plan.name for stripe.Invoice statement descriptor. Instead of hard coding the string for the stripe.InvoiceItem and stripe.Invoice statement_descriptor, we use the name of the plan that was just created. --- corporate/lib/stripe.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/corporate/lib/stripe.py b/corporate/lib/stripe.py index 0bc2ca4dde..6d13973f95 100644 --- a/corporate/lib/stripe.py +++ b/corporate/lib/stripe.py @@ -1125,7 +1125,7 @@ def process_initial_upgrade( stripe.InvoiceItem.create( currency="usd", customer=customer.stripe_customer_id, - description="Zulip Cloud Standard", + description=plan.name, discountable=False, period={ "start": datetime_to_timestamp(billing_cycle_anchor), @@ -1147,7 +1147,7 @@ def process_initial_upgrade( collection_method=collection_method, customer=customer.stripe_customer_id, days_until_due=days_until_due, - statement_descriptor="Zulip Cloud Standard", + statement_descriptor=plan.name, ) stripe.Invoice.finalize_invoice(stripe_invoice)