From e8fcbfa230643258b48142c7ed16c009ce20643a Mon Sep 17 00:00:00 2001 From: Paulo Castellano Date: Thu, 21 May 2026 10:09:20 -0300 Subject: [PATCH] refactor(billing): make trial toggle fixed in trypost config Keep the trial card requirement switch as a plain boolean in config/trypost.php so changing the app flow is a single in-repo config edit without env wiring. Co-authored-by: Cursor --- .env.example | 4 ---- config/trypost.php | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/.env.example b/.env.example index e6ae6d38..02edf84c 100644 --- a/.env.example +++ b/.env.example @@ -168,10 +168,6 @@ AI_AUDIO_PROVIDER=elevenlabs # Stripe (Cashier — billing) # ============================================ # Required when SELF_HOSTED=false. Get keys at https://dashboard.stripe.com/apikeys -# Trial behavior: -# - true => require card at checkout to start trial -# - false => grant a signup trial without card -BILLING_REQUIRE_CARD_FOR_TRIAL=true STRIPE_KEY= STRIPE_SECRET= STRIPE_WEBHOOK_SECRET= diff --git a/config/trypost.php b/config/trypost.php index a7209d9f..5b20081b 100644 --- a/config/trypost.php +++ b/config/trypost.php @@ -28,7 +28,7 @@ */ 'billing' => [ - 'require_card_for_trial' => env('BILLING_REQUIRE_CARD_FOR_TRIAL', true), + 'require_card_for_trial' => true, ], /*