src/ShopBundle/objects/db/TShopPaymentHandler/TShopPaymentHandlerIPaymentEndPoint.class.php
protected function IsSuccessResponse($response = '')
    {
        $bPaymentOk = false;
        $oGlobal = TGlobal::instance();
        if (empty($response)) {
            $aResult = $this->GetNeedeResponsePostParameterForSecurityCheck();
            $aResult['ret_status'] = $oGlobal->GetUserData('ret_status');
        } else {
            $aResult = $this->GetResultFormResponse($response);
        }

        if (count($aResult) > 0 && array_key_exists('ret_status', $aResult) && 'SUCCESS' == $aResult['ret_status']) {
            $bPaymentOk = true;
        }
        if ($bPaymentOk) {
            $bPaymentOk = $this->IsSecurityCheckOk($aResult['trxuser_id'], $aResult['trx_amount'], $aResult['trx_currency'], $aResult['ret_authcode'], $aResult['ret_trx_number'], $aResult['ret_param_checksum']);
        }

        return $bPaymentOk;
    }
protected function IsSuccessResponse($response = '')
    {
        $bPaymentOk = false;
        $oGlobal = TGlobal::instance();
        if (empty($response)) {
            $aResult = $this->GetNeedeResponsePostParameterForSecurityCheck();
            $aResult['ret_status'] = $oGlobal->GetUserData('ret_status');
        } else {
            $aResult = $this->GetResultFormResponse($response);
        }

        if (count($aResult) > 0 && array_key_exists('ret_status', $aResult) && 'SUCCESS' == $aResult['ret_status']) {
            $bPaymentOk = true;
        }
        if ($bPaymentOk) {
            $bPaymentOk = $this->IsSecurityCheckOk($aResult['trxuser_id'], $aResult['trx_amount'], $aResult['trx_currency'], $aResult['ret_authcode'], $aResult['ret_trx_number'], $aResult['ret_param_checksum']);
        }

        return $bPaymentOk;
    }
protected function IsSuccessResponse ( $ response = '' ) { $ bPaymentOk = false ; $ oGlobal = TGlobal :: instance ( ) ; if ( empty ( $ response ) ) { $ aResult = $ this -> GetNeedeResponsePostParameterForSecurityCheck ( ) ; $ aResult [ 'ret_status' ] = $ oGlobal -> GetUserData ( 'ret_status' ) ; } else { $ aResult = $ this -> GetResultFormResponse ( $ response ) ; } if ( count ( $ aResult ) > 0 && array_key_exists ( 'ret_status' , $ aResult ) && 'SUCCESS' == $ aResult [ 'ret_status' ] ) { $ bPaymentOk = true ; } if ( $ bPaymentOk ) { $ bPaymentOk = $ this -> IsSecurityCheckOk ( $ aResult [ 'trxuser_id' ] , $ aResult [ 'trx_amount' ] , $ aResult [ 'trx_currency' ] , $ aResult [ 'ret_authcode' ] , $ aResult [ 'ret_trx_number' ] , $ aResult [ 'ret_param_checksum' ] ) ; } return $ bPaymentOk ; }
Check if the payment call to IPayment was succesfully done
by parameter ret_status and hash check.

deprecated

@param string $response if empty function get parameter from post

@return bool $bPaymentOk
Check if the payment call to IPayment was succesfully done by parameter ret_status and hash check .