diff --git a/front/lib/plans/stripe.ts b/front/lib/plans/stripe.ts index 0617631af5ae..7f84f63c54a6 100644 --- a/front/lib/plans/stripe.ts +++ b/front/lib/plans/stripe.ts @@ -421,12 +421,12 @@ export function assertStripeSubscriptionItemIsValid({ } if ( - item.price.recurring.interval !== "month" || + !["month", "year"].includes(item.price.recurring.interval) || item.price.recurring.interval_count !== 1 ) { return new Err({ invalidity_message: - "Subscription recurring price has invalid interval, only 1-month intervals are allowed.", + "Subscription recurring price has invalid interval, only 1-month or 1-year intervals are allowed.", }); } }