'encrypted', 'secret_key' => 'encrypted', 'is_active' => 'boolean', 'metadata' => 'array', ]; } public function isConfigured(): bool { return $this->is_active && $this->provider === self::PROVIDER_PAYSTACK && str_starts_with(trim((string) $this->public_key), 'pk_') && str_starts_with(trim((string) $this->secret_key), 'sk_'); } }