protected function validateClientId(PaymentTransaction $paymentTransaction, Response $response)
    {
        $paymentClientId  = $paymentTransaction->getPayment()->getClientId();
        $responseClientId = $response->getPaymentClientId();

        if (     strlen($responseClientId) > 0
            &&   $paymentClientId != $responseClientId)
        {
            throw new ValidationException("Response clientId '{$responseClientId}' does " .
                                          "not match Payment clientId '{$paymentClientId}'");
        }
    }
protected function validateClientId(PaymentTransaction $paymentTransaction, Response $response)
    {
        $paymentClientId  = $paymentTransaction->getPayment()->getClientId();
        $responseClientId = $response->getPaymentClientId();

        if (     strlen($responseClientId) > 0
            &&   $paymentClientId != $responseClientId)
        {
            throw new ValidationException("Response clientId '{$responseClientId}' does " .
                                          "not match Payment clientId '{$paymentClientId}'");
        }
    }
protected function validateClientId ( PaymentTransaction $ paymentTransaction , Response $ response ) { $ paymentClientId = $ paymentTransaction -> getPayment ( ) -> getClientId ( ) ; $ responseClientId = $ response -> getPaymentClientId ( ) ; if ( strlen ( $ responseClientId ) > 0 && $ paymentClientId != $ responseClientId ) { throw new ValidationException ( "Response clientId '{$responseClientId}' does " . "not match Payment clientId '{$paymentClientId}'" ) ; } }
Check, is payment transaction client order id and query response client order id equal or not.

@param       PaymentTransaction      $paymentTransaction     Payment transaction
@param       Response                $response               Query response

@throws ValidationException
Check is payment transaction client order id and query response client order id equal or not .