Skip to content

Commit 666402c

Browse files
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.
1 parent c18c1b9 commit 666402c

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

.env.example

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,8 @@ AI_AUDIO_PROVIDER=elevenlabs
171171
STRIPE_KEY=
172172
STRIPE_SECRET=
173173
STRIPE_WEBHOOK_SECRET=
174+
# Set to false to allow generic signup trial without requiring a card.
175+
REQUIRE_CARD_FOR_TRIAL=true
174176

175177
# Stripe Plan Price IDs (one per plan × interval). Used by PlanSeeder.
176178
STRIPE_STARTER_MONTHLY=

config/trypost.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
*/
2929

3030
'billing' => [
31-
'require_card_for_trial' => true,
31+
'require_card_for_trial' => (bool) env('REQUIRE_CARD_FOR_TRIAL', true),
3232
],
3333

3434
/*

0 commit comments

Comments
 (0)