Payu\Parser\PaymentResponseParser::parseStatusCode PHP Метод

parseStatusCode() приватный Метод

private parseStatusCode ( $status, $code )
    private function parseStatusCode($status, $code)
    {
        $statusCode = null;
        if ($status == 'SUCCESS') {
            if ($code == 'AUTHORIZED') {
                $statusCode = ResponseAbstract::STATUS_APPROVED;
            } else {
                if ($code == '3DS_ENROLLED') {
                    $statusCode = ResponseAbstract::STATUS_UNAUTHORIZED;
                }
            }
        }
        return $statusCode;
    }