src/Payum/Payex/Api/BaseApi.php
protected function calculateHash(array $parameters, array $parametersKeys)
    {
        $orderedParameters = array();
        foreach ($parametersKeys as $parametersKey) {
            if (false == isset($parameters[$parametersKey])) {
                //TODO exception?
                continue;
            }

            $orderedParameters[$parametersKey] = $parameters[$parametersKey];
        }

        return md5(trim(implode("", $orderedParameters)).$this->options['encryption_key']);
    }
protected function calculateHash(array $parameters, array $parametersKeys)
    {
        $orderedParameters = array();
        foreach ($parametersKeys as $parametersKey) {
            if (false == isset($parameters[$parametersKey])) {
                //TODO exception?
                continue;
            }

            $orderedParameters[$parametersKey] = $parameters[$parametersKey];
        }

        return md5(trim(implode("", $orderedParameters)).$this->options['encryption_key']);
    }
@param array $parameters
@param array $parametersKeys

@return string