public function isAuthorise($response){
        $result = false;
        $hasError = $this->isError($response);
        $isApprove = $this->isApprove($response);

        if(!$hasError && $isApprove){
            $result = true;
        }

        return $result;
    }
public function isAuthorise($response){
        $result = false;
        $hasError = $this->isError($response);
        $isApprove = $this->isApprove($response);

        if(!$hasError && $isApprove){
            $result = true;
        }

        return $result;
    }
public function isAuthorise ( $ response ) { $ result = false ; $ hasError = $ this -> isError ( $ response ) ; $ isApprove = $ this -> isApprove ( $ response ) ; if ( ! $ hasError && $ isApprove ) { $ result = true ; } return $ result ; }
Check charge response
If response is approve or has error, return boolean
Check charge response If response is approve or has error return boolean