title: Android in app billing - How to know which users have bought a product
body: <p>I have an android app with a donation system, these donations are integrated products that are automatically consumed to let the users donate more than once.</p>
  
  <p>I need to know if there is some way to find out which users have donated at least once.</p>
  
  <p>I appreciate any help.</p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>In addition to Dima Kozhevin's answer... I used this code in <code>onServiceConnected()</code> event inside <code>startSetup()</code> method from my <code>IabHelper.</code></p>
  
  <pre><code>Bundle purchaseHistoryBundle = mService.getPurchaseHistory(6,BuildConfig.APPLICATION_ID, "inapp", null, new Bundle());
  ArrayList&lt;String&gt; mListItems = purchaseHistoryBundle.getStringArrayList("INAPP_PURCHASE_ITEM_LIST");
  if (mListItems != null){
      if (mListItems.size()&gt;0){
          //User have donated at least once
      }else{
          //User never donated
      }
  }
  </code></pre>