protected function processProcessorResponse($response)
    {
        $statusCode = isset($response->StatusCode)
                    ? (string)$response->StatusCode
                    : null;

        if ($statusCode == null || $statusCode == 'Y') {
            return;
        }

        throw new HpsException((string)$response->ErrorDesc);
    }