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.

stripe: Fix `user_id` not converted to string in metadata.

Aman Agrawal84470b90b86c
diff --git a/corporate/lib/stripe.py b/corporate/lib/stripe.py
index ba98d7dec20..23a43bf92a6 100644
--- a/corporate/lib/stripe.py
+++ b/corporate/lib/stripe.py
@@ -896,7 +896,7 @@ class BillingSession(ABC):
}
if hasattr(self, "user"):
- metadata["user_id"] = self.user.id
+ metadata["user_id"] = str(self.user.id)
# We only need to email customer about open invoice for manual billing.
# If automatic charge fails, we simply void the invoice.