<?php

require __DIR__.'/vendor/autoload.php';

$app = require_once __DIR__.'/bootstrap/app.php';
$app->make(Illuminate\Contracts\Console\Kernel::class)->bootstrap();

$secret = 'whsec_554bf7d18453a3bce797ac75d17300809d7acd98360b5ec70769a06a443fdefa';

$updated = DB::table('payment_gateways')
    ->where('provider', 'stripe')
    ->update(['test_webhook_secret' => $secret]);

echo "✅ Updated webhook secret! Rows affected: $updated\n";
echo "Secret: $secret\n";
