title: Get the Payment method name from QuickBooks Online
body: <p>The Payment information from QuickBooks online will only returns the <strong>PaymentMethodRef</strong> reference property with ID.</p>
  
  <p>How can i get the payment method name, when requesting for the payment information from QBOE ?</p>
  
  <p>For reference, added the code below.</p>
  
  <p>Here the <em>_paymentList[i].PaymentMethodRef.name</em> is always empty and only it will have the <em>_paymentList[i].PaymentMethodRef.id</em>.</p>
  
  <pre><code>ServiceContext serviceContext = getServiceContext(companyID, operatorID);
            QueryService&lt;Item&gt; itemQueryService = new QueryService&lt;Item&gt;(serviceContext);
            DataService service = new DataService(serviceContext);
            Batch batch = service.CreateNewBatch();
            ServiceQBOnline_Payment Payment_info;
  
           batch.Add("select * from Payment where Id In " + TxnIds + " ORDERBY id startPosition " + BatchStartIdx + " MaxResults 100", "bID1");
           batch.Execute();
  
  
   intuitBatchResponse queryCustomerResponse = batch["bID1"];
  
   if (queryCustomerResponse.ResponseType == ResponseType.Query)
     {
  
      List&lt;Payment&gt; _paymentList = queryCustomerResponse.Entities.ToList().ConvertAll(item =&gt; item as Payment);         
      Response.PaymentExportSuccessList = new List&lt;ServiceQBOnline_Payment&gt;();
  
    for (int i = 0; i &lt; _paymentList.Count; i++)
    {         
      Payment_info.PaymentMethod = _paymentList[i].PaymentMethodRef == null ? "" : _paymentList[i].PaymentMethodRef.name;
      Response.PaymentExportSuccessList.Add(Payment_info);
   }
  </code></pre>