<?php

namespace Database\Seeders;

use App\Models\PaymentMethod;
use Illuminate\Database\Seeder;

class PaymentMethodSeeder extends Seeder
{
    /**
     * Run the database seeds.
     */
    public function run(): void
    {
        PaymentMethod::updateOrCreate(
            ['provider' => 'stripe', 'name' => 'Stripe Sandbox'],
            [
                'description' => 'Stripe test gateway for platform billing',
                'credentials' => [
                    'api_key' => 'sk_test_demo_key',
                ],
                'is_active' => true,
            ]
        );

        PaymentMethod::updateOrCreate(
            ['provider' => 'paypal', 'name' => 'PayPal Sandbox'],
            [
                'description' => 'PayPal test gateway',
                'credentials' => [
                    'client_id' => 'paypal-demo-client-id',
                    'client_secret' => 'paypal-demo-secret',
                ],
                'is_active' => false,
            ]
        );
    }
}
