public function isSuccessful()
    {
        // As per appendix F, 000 means the message was processed correctly
        if ((string) $this->data->Status->statusCode !== '000'
            || ($this->hasTransaction()
                && (string) $this->data->Payment->TxnList->Txn->approved !== 'Yes')) {
            return false;
        }

        return true;
    }
public function isSuccessful()
    {
        // As per appendix F, 000 means the message was processed correctly
        if ((string) $this->data->Status->statusCode !== '000'
            || ($this->hasTransaction()
                && (string) $this->data->Payment->TxnList->Txn->approved !== 'Yes')) {
            return false;
        }

        return true;
    }
public function isSuccessful ( ) { // As per appendix F, 000 means the message was processed correctly if ( ( string ) $ this -> data -> Status -> statusCode !== '000' || ( $ this -> hasTransaction ( ) && ( string ) $ this -> data -> Payment -> TxnList -> Txn -> approved !== 'Yes' ) ) { return false ; } return true ; }
Determine if the transaction is successful or not.

@note Rather than using HTTP status codes, the SecureXML API returns a
status code as part of the response if there is an internal API issue.

@return bool
Determine if the transaction is successful or not .