From 051f49ce9af158859fd6fd4e95f540d34b426002 Mon Sep 17 00:00:00 2001 From: Marshall Bowers Date: Tue, 20 May 2025 10:01:45 -0400 Subject: [PATCH] collab: Cancel trials when they end with a missing payment method (#31018) This PR makes it so we cancel trials instead of pausing them when they end with a missing payment method. Release Notes: - N/A --- crates/collab/src/stripe_billing.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/collab/src/stripe_billing.rs b/crates/collab/src/stripe_billing.rs index 20803fa446..1af341261d 100644 --- a/crates/collab/src/stripe_billing.rs +++ b/crates/collab/src/stripe_billing.rs @@ -278,7 +278,7 @@ impl StripeBilling { trial_period_days: Some(trial_period_days), trial_settings: Some(stripe::CreateCheckoutSessionSubscriptionDataTrialSettings { end_behavior: stripe::CreateCheckoutSessionSubscriptionDataTrialSettingsEndBehavior { - missing_payment_method: stripe::CreateCheckoutSessionSubscriptionDataTrialSettingsEndBehaviorMissingPaymentMethod::Pause, + missing_payment_method: stripe::CreateCheckoutSessionSubscriptionDataTrialSettingsEndBehaviorMissingPaymentMethod::Cancel, } }), metadata: if !subscription_metadata.is_empty() {