def execute_query(query_name, payment_transaction)
      query = query(query_name)

      begin
        request = query.create_request payment_transaction
        response = make_request request
        query.process_response payment_transaction, response
      rescue Exception => error
        handle_exception error, payment_transaction, response
        return
      end

      handle_query_result payment_transaction, response

      response
    end
def execute_query(query_name, payment_transaction)
      query = query(query_name)

      begin
        request = query.create_request payment_transaction
        response = make_request request
        query.process_response payment_transaction, response
      rescue Exception => error
        handle_exception error, payment_transaction, response
        return
      end

      handle_query_result payment_transaction, response

      response
    end
Executes payment API query

 @param    query_name            [String]                Payment API query name
 @param    payment_transaction   [PaymentTransaction]    Payment transaction for processing

 @return                         [Response]              Query response