<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class PaymentGateway extends Model
{
    protected $fillable = [
        'name', 'code', 'description', 'is_active', 'mode', 
        'is_global', 'allowed_countries',
        'supported_currencies', 'test_credentials', 'live_credentials'
    ];

    protected $casts = [
        'is_active' => 'boolean',
        'is_global' => 'boolean', 
        'allowed_countries' => 'array',
        'supported_currencies' => 'array',
        'test_credentials' => 'encrypted:array',
        'live_credentials' => 'encrypted:array',
    ];
}