src/ShopBundle/objects/db/TShopPaymentHandler/TShopPaymentHandlerDataTrans.class.php
protected function SettlementResponseSuccess($sResponse)
    {
        $bSettlementResponseSuccess = true;
        $sRefNo = $this->GetRefNoParameter(false);
        $oXML = simplexml_load_string($sResponse);
        if (isset($oXML->body->transaction->response)) {
            TTools::WriteLogEntrySimple('Payment DataTrans: Erfoglreiche XML Settlement Response for transaction'.$this->sTransactionId.'and reference number '.$sRefNo, 3, __FILE__, __LINE__);
        } else {
            if (isset($oXML->body->transaction->error)) {
                $sErrorCode = '';
                $sErrorMessage = '';
                if (isset($oXML->body->transaction->error->errorCode)) {
                    $sErrorCode = strval($oXML->body->transaction->error->errorCode);
                }
                if (isset($oXML->body->transaction->error->errorDetail)) {
                    $sErrorMessage = strval($oXML->body->transaction->error->errorDetail);
                }
                if (isset($oXML->body->transaction->error->errorMessage)) {
                    $sErrorMessage .= strval($oXML->body->transaction->error->errorMessage);
                }
                TTools::WriteLogEntrySimple('Payment DataTrans: Fehlerhafte XML Settlement Response for transaction'.$this->sTransactionId.'and reference number '.$sRefNo.'. CODE('.$sErrorCode.') MESSAGE('.$sErrorMessage.')'.' response: '.$sResponse, 1, __FILE__, __LINE__);
            } else {
                TTools::WriteLogEntrySimple('Payment DataTrans: Fehlerhafte XML Settlement Response for transaction'.$this->sTransactionId.'and reference number '.$sRefNo.' response: '.$sResponse, 1, __FILE__, __LINE__);
            }
            $bSettlementResponseSuccess = false;
        }

        return $bSettlementResponseSuccess;
    }
protected function SettlementResponseSuccess($sResponse)
    {
        $bSettlementResponseSuccess = true;
        $sRefNo = $this->GetRefNoParameter(false);
        $oXML = simplexml_load_string($sResponse);
        if (isset($oXML->body->transaction->response)) {
            TTools::WriteLogEntrySimple('Payment DataTrans: Erfoglreiche XML Settlement Response for transaction'.$this->sTransactionId.'and reference number '.$sRefNo, 3, __FILE__, __LINE__);
        } else {
            if (isset($oXML->body->transaction->error)) {
                $sErrorCode = '';
                $sErrorMessage = '';
                if (isset($oXML->body->transaction->error->errorCode)) {
                    $sErrorCode = strval($oXML->body->transaction->error->errorCode);
                }
                if (isset($oXML->body->transaction->error->errorDetail)) {
                    $sErrorMessage = strval($oXML->body->transaction->error->errorDetail);
                }
                if (isset($oXML->body->transaction->error->errorMessage)) {
                    $sErrorMessage .= strval($oXML->body->transaction->error->errorMessage);
                }
                TTools::WriteLogEntrySimple('Payment DataTrans: Fehlerhafte XML Settlement Response for transaction'.$this->sTransactionId.'and reference number '.$sRefNo.'. CODE('.$sErrorCode.') MESSAGE('.$sErrorMessage.')'.' response: '.$sResponse, 1, __FILE__, __LINE__);
            } else {
                TTools::WriteLogEntrySimple('Payment DataTrans: Fehlerhafte XML Settlement Response for transaction'.$this->sTransactionId.'and reference number '.$sRefNo.' response: '.$sResponse, 1, __FILE__, __LINE__);
            }
            $bSettlementResponseSuccess = false;
        }

        return $bSettlementResponseSuccess;
    }
protected function SettlementResponseSuccess ( $ sResponse ) { $ bSettlementResponseSuccess = true ; $ sRefNo = $ this -> GetRefNoParameter ( false ) ; $ oXML = simplexml_load_string ( $ sResponse ) ; if ( isset ( $ oXML -> body -> transaction -> response ) ) { TTools :: WriteLogEntrySimple ( 'Payment DataTrans: Erfoglreiche XML Settlement Response for transaction' . $ this -> sTransactionId . 'and reference number ' . $ sRefNo , 3 , __FILE__ , __LINE__ ) ; } else { if ( isset ( $ oXML -> body -> transaction -> error ) ) { $ sErrorCode = '' ; $ sErrorMessage = '' ; if ( isset ( $ oXML -> body -> transaction -> error -> errorCode ) ) { $ sErrorCode = strval ( $ oXML -> body -> transaction -> error -> errorCode ) ; } if ( isset ( $ oXML -> body -> transaction -> error -> errorDetail ) ) { $ sErrorMessage = strval ( $ oXML -> body -> transaction -> error -> errorDetail ) ; } if ( isset ( $ oXML -> body -> transaction -> error -> errorMessage ) ) { $ sErrorMessage .= strval ( $ oXML -> body -> transaction -> error -> errorMessage ) ; } TTools :: WriteLogEntrySimple ( 'Payment DataTrans: Fehlerhafte XML Settlement Response for transaction' . $ this -> sTransactionId . 'and reference number ' . $ sRefNo . '. CODE(' . $ sErrorCode . ') MESSAGE(' . $ sErrorMessage . ')' . ' response: ' . $ sResponse , 1 , __FILE__ , __LINE__ ) ; } else { TTools :: WriteLogEntrySimple ( 'Payment DataTrans: Fehlerhafte XML Settlement Response for transaction' . $ this -> sTransactionId . 'and reference number ' . $ sRefNo . ' response: ' . $ sResponse , 1 , __FILE__ , __LINE__ ) ; } $ bSettlementResponseSuccess = false ; } return $ bSettlementResponseSuccess ; }
Checks the response from settlement request.
No sign check on settlement response because DataTrans do not send sign in settlement response.

@param $sResponse

@return bool
Checks the response from settlement request . No sign check on settlement response because DataTrans do not send sign in settlement response .