public function createResponseHash($amount, $dateTime, $code)
    {
        $this->validate('storeId', 'sharedSecret', 'currency');

        $storeId      = $this->getStoreId();
        $sharedSecret = $this->getSharedSecret();
        $currency     = $this->getCurrencyNumeric();

        $stringToHash = $sharedSecret . $code . $amount . $currency . $dateTime . $storeId;
        $ascii        = bin2hex($stringToHash);

        return sha1($ascii);
    }
public function createResponseHash($amount, $dateTime, $code)
    {
        $this->validate('storeId', 'sharedSecret', 'currency');

        $storeId      = $this->getStoreId();
        $sharedSecret = $this->getSharedSecret();
        $currency     = $this->getCurrencyNumeric();

        $stringToHash = $sharedSecret . $code . $amount . $currency . $dateTime . $storeId;
        $ascii        = bin2hex($stringToHash);

        return sha1($ascii);
    }
public function createResponseHash ( $ amount , $ dateTime , $ code ) { $ this -> validate ( 'storeId' , 'sharedSecret' , 'currency' ) ; $ storeId = $ this -> getStoreId ( ) ; $ sharedSecret = $ this -> getSharedSecret ( ) ; $ currency = $ this -> getCurrencyNumeric ( ) ; $ stringToHash = $ sharedSecret . $ code . $ amount . $ currency . $ dateTime . $ storeId ; $ ascii = bin2hex ( $ stringToHash ) ; return sha1 ( $ ascii ) ; }
Generate a hash string that matches the format of the one returned by the payment gateway

@param  string $amount
@param  string $dateTime
@param  string $code
@return string
Generate a hash string that matches the format of the one returned by the payment gateway