Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
collab: Don't require payment method to subscribe to Zed Free (#30398)
Marshall Bowers8f07135201a6
diff --git a/crates/collab/src/stripe_billing.rs b/crates/collab/src/stripe_billing.rsindex 6c89cc94be8..19f06570157 100644--- a/crates/collab/src/stripe_billing.rs+++ b/crates/collab/src/stripe_billing.rs@@ -248,6 +248,8 @@ impl StripeBilling {let mut params = stripe::CreateCheckoutSession::new();params.mode = Some(stripe::CheckoutSessionMode::Subscription);+ params.payment_method_collection =+ Some(stripe::CheckoutSessionPaymentMethodCollection::IfRequired);params.customer = Some(customer_id);params.client_reference_id = Some(github_login);params.line_items = Some(vec![stripe::CreateCheckoutSessionLineItems {