<?php
 namespace App\Modules\Fraud\FraudLabs; use App\Services\Fraud\Contracts\FraudModuleResponse; class Response extends FraudModuleResponse { protected array $failureErrorCodes = [101, 102, 103, 104, 203, 204, 210, 211]; public function isSuccessful(): bool { $errorCode = $this->get('fraudlabspro_error_code'); return $this->httpCode === 200 && (!$errorCode || !in_array($errorCode, $this->failureErrorCodes)); } } 