protected function validateQueryConfig(PaymentTransaction $paymentTransaction)
    {
        $queryConfig = $paymentTransaction->getQueryConfig();

        if(strlen($queryConfig->getSigningKey()) === 0)
        {
            throw new ValidationException("Property 'signingKey' does not defined in PaymentTransaction property 'queryConfig'");
        }

        if (strlen($queryConfig->getEndPoint()) == 0 && strlen($queryConfig->getEndPointGroup()) === 0)
        {
            throw new ValidationException(
                "Properties 'endPont' and 'endPointGroup' do not defined in " .
                "PaymentTransaction property 'queryConfig'. Set one of them."
            );
        }

        if (strlen($queryConfig->getEndPoint()) > 0 && strlen($queryConfig->getEndPointGroup()) > 0)
        {
            throw new ValidationException(
                "Property 'endPont' was set and property 'endPointGroup' was set in " .
                "PaymentTransaction property 'queryConfig'. Set only one of them."
            );
        }
    }
protected function validateQueryConfig(PaymentTransaction $paymentTransaction)
    {
        $queryConfig = $paymentTransaction->getQueryConfig();

        if(strlen($queryConfig->getSigningKey()) === 0)
        {
            throw new ValidationException("Property 'signingKey' does not defined in PaymentTransaction property 'queryConfig'");
        }

        if (strlen($queryConfig->getEndPoint()) == 0 && strlen($queryConfig->getEndPointGroup()) === 0)
        {
            throw new ValidationException(
                "Properties 'endPont' and 'endPointGroup' do not defined in " .
                "PaymentTransaction property 'queryConfig'. Set one of them."
            );
        }

        if (strlen($queryConfig->getEndPoint()) > 0 && strlen($queryConfig->getEndPointGroup()) > 0)
        {
            throw new ValidationException(
                "Property 'endPont' was set and property 'endPointGroup' was set in " .
                "PaymentTransaction property 'queryConfig'. Set only one of them."
            );
        }
    }
protected function validateQueryConfig ( PaymentTransaction $ paymentTransaction ) { $ queryConfig = $ paymentTransaction -> getQueryConfig ( ) ; if ( strlen ( $ queryConfig -> getSigningKey ( ) ) === 0 ) { throw new ValidationException ( "Property 'signingKey' does not defined in PaymentTransaction property 'queryConfig'" ) ; } if ( strlen ( $ queryConfig -> getEndPoint ( ) ) == 0 && strlen ( $ queryConfig -> getEndPointGroup ( ) ) === 0 ) { throw new ValidationException ( "Properties 'endPont' and 'endPointGroup' do not defined in " . "PaymentTransaction property 'queryConfig'. Set one of them." ) ; } if ( strlen ( $ queryConfig -> getEndPoint ( ) ) > 0 && strlen ( $ queryConfig -> getEndPointGroup ( ) ) > 0 ) { throw new ValidationException ( "Property 'endPont' was set and property 'endPointGroup' was set in " . "PaymentTransaction property 'queryConfig'. Set only one of them." ) ; } }
Validates payment transaction query config

@param       PaymentTransaction      $paymentTransaction     Payment transaction

@throws      RuntimeException                                Some query config property is empty
Validates payment transaction query config