make(Illuminate\Contracts\Console\Kernel::class)->bootstrap(); $creds=json_decode(file_get_contents('/tmp/pawzody-stripe-test-user.json'),true); $user=App\Models\User::findOrFail($creds['user_id']); echo 'Demo account plan: '.$user->plan_slug.PHP_EOL; foreach($user->payments()->with('plan')->orderBy('id')->get() as $p) echo $p->plan?->slug.': '.$p->status.'; confirmation: '.($p->payload['source']??'none').PHP_EOL; $key=config('services.stripe.secret'); if(!str_starts_with((string)$key,'sk_test_')) throw new RuntimeException('Test mode required'); $stripe=new Stripe\StripeClient($key); $p=$user->payments()->latest('id')->first(); if($p){$s=$stripe->checkout->sessions->retrieve($p->stripe_checkout_session_id);echo 'Latest Stripe test checkout: '.$s->status.'; payment: '.$s->payment_status.'; livemode: '.($s->livemode?'true':'false').PHP_EOL;}