collab: Don't require payment method to subscribe to Zed Free (#30398)
This PR makes it so we don't require a payment method to subscribe to the Zed Free plan. Release Notes: - N/A
This commit is contained in:
parent
1dfddf0a29
commit
8f07135201
1 changed files with 2 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue