public function verifySignature()
    {
        if ( isset($this->data['CreditCardTransactionResults']['ResponseCode']) && (
            '1' == $this->data['CreditCardTransactionResults']['ResponseCode'] ||
            '2' == $this->data['CreditCardTransactionResults']['ResponseCode']) )
        {
            $signature  = $this->request->getMerchantPassword();
            $signature .= $this->request->getMerchantId();
            $signature .= $this->request->getAcquirerId();
            $signature .= $this->request->getTransactionId();

            $signature  = base64_encode( sha1($signature, true) );

            if ( $signature !== $this->data['Signature'] ) {
                throw new InvalidResponseException('Signature verification failed');
            }
        }
    }
public function verifySignature()
    {
        if ( isset($this->data['CreditCardTransactionResults']['ResponseCode']) && (
            '1' == $this->data['CreditCardTransactionResults']['ResponseCode'] ||
            '2' == $this->data['CreditCardTransactionResults']['ResponseCode']) )
        {
            $signature  = $this->request->getMerchantPassword();
            $signature .= $this->request->getMerchantId();
            $signature .= $this->request->getAcquirerId();
            $signature .= $this->request->getTransactionId();

            $signature  = base64_encode( sha1($signature, true) );

            if ( $signature !== $this->data['Signature'] ) {
                throw new InvalidResponseException('Signature verification failed');
            }
        }
    }
public function verifySignature ( ) { if ( isset ( $ this -> data [ 'CreditCardTransactionResults' ] [ 'ResponseCode' ] ) && ( '1' == $ this -> data [ 'CreditCardTransactionResults' ] [ 'ResponseCode' ] || '2' == $ this -> data [ 'CreditCardTransactionResults' ] [ 'ResponseCode' ] ) ) { $ signature = $ this -> request -> getMerchantPassword ( ) ; $ signature .= $ this -> request -> getMerchantId ( ) ; $ signature .= $ this -> request -> getAcquirerId ( ) ; $ signature .= $ this -> request -> getTransactionId ( ) ; $ signature = base64_encode ( sha1 ( $ signature , true ) ) ; if ( $ signature !== $ this -> data [ 'Signature' ] ) { throw new InvalidResponseException ( 'Signature verification failed' ) ; } } }
Verifies the signature for the response.

@throws InvalidResponseException if the signature doesn't match

@return void
Verifies the signature for the response .