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'];
        }
    }
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'];
        }
    }
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' ] ; } }
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
What is the relevant description of the transaction response?