src/main/php/com-realexpayments-hpp-sdk/domain/HppResponse.php
public function generateHash( $secret ) {
		//check for any null values and set them to empty string for hashing
		$timeStamp  = null == $this->timeStamp ? "" : $this->timeStamp;
		$merchantId = null == $this->merchantId ? "" : $this->merchantId;
		$orderId    = null == $this->orderId ? "" : $this->orderId;
		$result     = null == $this->result ? "" : $this->result;
		$message    = null == $this->message ? "" : $this->message;
		$pasRef     = null == $this->pasRef ? "" : $this->pasRef;
		$authCode   = null == $this->authCode ? "" : $this->authCode;

		//create $to hash
		$toHash = $timeStamp
		          . "."
		          . $merchantId
		          . "."
		          . $orderId
		          . "."
		          . $result
		          . "."
		          . $message
		          . "."
		          . $pasRef
		          . "."
		          . $authCode;


		return GenerationUtils::generateHash( $toHash, $secret );
	}
public function generateHash( $secret ) {
		//check for any null values and set them to empty string for hashing
		$timeStamp  = null == $this->timeStamp ? "" : $this->timeStamp;
		$merchantId = null == $this->merchantId ? "" : $this->merchantId;
		$orderId    = null == $this->orderId ? "" : $this->orderId;
		$result     = null == $this->result ? "" : $this->result;
		$message    = null == $this->message ? "" : $this->message;
		$pasRef     = null == $this->pasRef ? "" : $this->pasRef;
		$authCode   = null == $this->authCode ? "" : $this->authCode;

		//create $to hash
		$toHash = $timeStamp
		          . "."
		          . $merchantId
		          . "."
		          . $orderId
		          . "."
		          . $result
		          . "."
		          . $message
		          . "."
		          . $pasRef
		          . "."
		          . $authCode;


		return GenerationUtils::generateHash( $toHash, $secret );
	}
Creates the security hash from a number of fields and the shared secret.

@param string $secret

@return String