public function getResponseSignature($apiId, $timestamp, $nonce, $statusCode, $resultCode, $callId)
    {
        $string = $apiId
            . $timestamp
            . $nonce
            . $statusCode
            . $resultCode
            . $callId;

        return hash_hmac('sha1', $string, $this->getService()->getApiSecret());
    }
public function getResponseSignature($apiId, $timestamp, $nonce, $statusCode, $resultCode, $callId)
    {
        $string = $apiId
            . $timestamp
            . $nonce
            . $statusCode
            . $resultCode
            . $callId;

        return hash_hmac('sha1', $string, $this->getService()->getApiSecret());
    }
public function getResponseSignature ( $ apiId , $ timestamp , $ nonce , $ statusCode , $ resultCode , $ callId ) { $ string = $ apiId . $ timestamp . $ nonce . $ statusCode . $ resultCode . $ callId ; return hash_hmac ( 'sha1' , $ string , $ this -> getService ( ) -> getApiSecret ( ) ) ; }
Calculate the hmac-sha1 signature of the response

We will use this calculation to compare against the signature we receive
back from Chargify after the redirect.

@param string $apiId      From $_GET['api_id']
@param string $timestamp  From $_GET['timestamp']
@param string $nonce      From $_GET['nonce']
@param string $statusCode From $_GET['status_code']
@param string $resultCode From $_GET['result_code']
@param string $callId     From $_GET['call_id']

@return string
@see isValidResponseSignature()
Calculate the hmac - sha1 signature of the response