protected function validateResponseOnError(PaymentTransaction $paymentTransaction, Response $response)
    {
        $allowedTypes = array(static::$successResponseType, 'error', 'validation-error');

        if (!in_array($response->getType(), $allowedTypes))
        {
            throw new ValidationException("Unknown response type '{$response->getType()}'");
        }

        $this->validateClientId($paymentTransaction, $response);
    }