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
This commit is contained in:
parent
e5670ba081
commit
051f49ce9a
1 changed files with 1 additions and 1 deletions
|
@ -278,7 +278,7 @@ impl StripeBilling {
|
||||||
trial_period_days: Some(trial_period_days),
|
trial_period_days: Some(trial_period_days),
|
||||||
trial_settings: Some(stripe::CreateCheckoutSessionSubscriptionDataTrialSettings {
|
trial_settings: Some(stripe::CreateCheckoutSessionSubscriptionDataTrialSettings {
|
||||||
end_behavior: stripe::CreateCheckoutSessionSubscriptionDataTrialSettingsEndBehavior {
|
end_behavior: stripe::CreateCheckoutSessionSubscriptionDataTrialSettingsEndBehavior {
|
||||||
missing_payment_method: stripe::CreateCheckoutSessionSubscriptionDataTrialSettingsEndBehaviorMissingPaymentMethod::Pause,
|
missing_payment_method: stripe::CreateCheckoutSessionSubscriptionDataTrialSettingsEndBehaviorMissingPaymentMethod::Cancel,
|
||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
metadata: if !subscription_metadata.is_empty() {
|
metadata: if !subscription_metadata.is_empty() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue