From 666402c59fe6f748d4f8508fc328a1680e12fd7d Mon Sep 17 00:00:00 2001 From: Paulo Castellano Date: Thu, 21 May 2026 20:18:21 -0300 Subject: [PATCH] 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. --- .env.example | 2 ++ config/trypost.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.env.example b/.env.example index 02edf84c..6d4c3104 100644 --- a/.env.example +++ b/.env.example @@ -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= diff --git a/config/trypost.php b/config/trypost.php index 5b20081b..0b1788ae 100644 --- a/config/trypost.php +++ b/config/trypost.php @@ -28,7 +28,7 @@ */ 'billing' => [ - 'require_card_for_trial' => true, + 'require_card_for_trial' => (bool) env('REQUIRE_CARD_FOR_TRIAL', true), ], /*