src/ShopBundle/objects/db/TShopPaymentHandler/TShopPaymentHandlerMontrada.class.php
protected function GetMontradaRequstHash($aInput)
    {
        $sDelimiter = '-';

        $sString = $this->GetConfigParameter('secret').$sDelimiter;
        $sString .= $this->GetConfigParameter('merchid').$sDelimiter;
        $sString .= $aInput['orderid'].$sDelimiter;
        $sString .= $this->GetConfigParameter('payments').$sDelimiter;
        $sString .= $aInput['amount'].$sDelimiter;
        $sString .= $aInput['currency'].$sDelimiter;
        $sString .= $aInput['command'].$sDelimiter;
        $sString .= $aInput['timestamp'];

        return hash('sha256', $sString);
    }
protected function GetMontradaRequstHash($aInput)
    {
        $sDelimiter = '-';

        $sString = $this->GetConfigParameter('secret').$sDelimiter;
        $sString .= $this->GetConfigParameter('merchid').$sDelimiter;
        $sString .= $aInput['orderid'].$sDelimiter;
        $sString .= $this->GetConfigParameter('payments').$sDelimiter;
        $sString .= $aInput['amount'].$sDelimiter;
        $sString .= $aInput['currency'].$sDelimiter;
        $sString .= $aInput['command'].$sDelimiter;
        $sString .= $aInput['timestamp'];

        return hash('sha256', $sString);
    }
protected function GetMontradaRequstHash ( $ aInput ) { $ sDelimiter = '-' ; $ sString = $ this -> GetConfigParameter ( 'secret' ) . $ sDelimiter ; $ sString .= $ this -> GetConfigParameter ( 'merchid' ) . $ sDelimiter ; $ sString .= $ aInput [ 'orderid' ] . $ sDelimiter ; $ sString .= $ this -> GetConfigParameter ( 'payments' ) . $ sDelimiter ; $ sString .= $ aInput [ 'amount' ] . $ sDelimiter ; $ sString .= $ aInput [ 'currency' ] . $ sDelimiter ; $ sString .= $ aInput [ 'command' ] . $ sDelimiter ; $ sString .= $ aInput [ 'timestamp' ] ; return hash ( 'sha256' , $ sString ) ; }
calculate request hash.

@param array $aInput

@return string
calculate request hash .