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