feat(billing): add configuration for trial signup card requirement

Introduced a new environment variable `REQUIRE_CARD_FOR_TRIAL` to control whether a credit card is required for trial signups. Updated the billing configuration to reflect this setting, allowing for more flexible trial management.
This commit is contained in:
Paulo Castellano 2026-05-21 20:18:21 -03:00
parent c18c1b9c0d
commit 666402c59f
2 changed files with 3 additions and 1 deletions

View file

@ -171,6 +171,8 @@ AI_AUDIO_PROVIDER=elevenlabs
STRIPE_KEY=
STRIPE_SECRET=
STRIPE_WEBHOOK_SECRET=
# Set to false to allow generic signup trial without requiring a card.
REQUIRE_CARD_FOR_TRIAL=true
# Stripe Plan Price IDs (one per plan × interval). Used by PlanSeeder.
STRIPE_STARTER_MONTHLY=

View file

@ -28,7 +28,7 @@
*/
'billing' => [
'require_card_for_trial' => true,
'require_card_for_trial' => (bool) env('REQUIRE_CARD_FOR_TRIAL', true),
],
/*