original_string: public function getMessage()
      {
          // check for HTTP failure response first
          $httpMessage = parent::getMessage();
          if ($httpMessage !== null) {
              return $httpMessage;
          }
  
          // check if descriptive failure reason is available
          if (!$this->isSuccessful() && isset($this->data['paymentStatusReason'])) {
              return $this->data['paymentStatusReason'];
          }
  
          // check if general payment status is available
          if (isset($this->data['paymentStatus'])) {
              return $this->data['paymentStatus'];
          }
      }
code: public function getMessage()
      {
          // check for HTTP failure response first
          $httpMessage = parent::getMessage();
          if ($httpMessage !== null) {
              return $httpMessage;
          }
  
          // check if descriptive failure reason is available
          if (!$this->isSuccessful() && isset($this->data['paymentStatusReason'])) {
              return $this->data['paymentStatusReason'];
          }
  
          // check if general payment status is available
          if (isset($this->data['paymentStatus'])) {
              return $this->data['paymentStatus'];
          }
      }
code_tokens: public function getMessage ( ) { // check for HTTP failure response first $ httpMessage = parent :: getMessage ( ) ; if ( $ httpMessage !== null ) { return $ httpMessage ; } // check if descriptive failure reason is available if ( ! $ this -> isSuccessful ( ) && isset ( $ this -> data [ 'paymentStatusReason' ] ) ) { return $ this -> data [ 'paymentStatusReason' ] ; } // check if general payment status is available if ( isset ( $ this -> data [ 'paymentStatus' ] ) ) { return $ this -> data [ 'paymentStatus' ] ; } }
docstring: What is the relevant description of the transaction response?
  
  @todo Sometimes the 'description' field is more user-friendly (see simulated eror) - how do we decide which one?
  
  @return string|null
docstring_tokens: What is the relevant description of the transaction response?