title: Cancelling orders on Google Play IAB test purchases after June 20, 2016
body: <p>I have been using Google Play in-app purchases (IAPs) for a long time, but recently (June 20, 2016). They updated the Payments Merchant Center so that test purchases are not shown anymore. I quote a recent email to developers:</p>
  
  <p>"Previously, test purchases for one-time IAPs generated order IDs. Starting June 20, 2016, one-time IAPs will not generate order IDs and will not appear in the Merchant Center."</p>
  
  <p>I have found no information regarding purchases (not subscriptions) in the link:
  <a href="https://developer.android.com/google/play/billing/billing_testing.html" rel="nofollow noreferrer">https://developer.android.com/google/play/billing/billing_testing.html</a>
  The page has a "Canceling completed test purchases" that only comments on subscriptions.</p>
  
  <p>My question is, where do I cancel a test purchase if they do not appear in the Payments Merchant Center?</p>
  
  <p>UPDATE- Official answer from Google Support:</p>
  
  <p>Thanks for contacting Google Play Developer Support.
  I checked into it, and the Play Developer Console doesn’t currently support the cancelation of test IAP. The only ways are to either consume the IAP or wait the 14 days consumption time. </p>
  
  <p>UPDATE 2- Thanks to the answer below from Mike, I inserted the code below:</p>
  
  <pre><code>Purchase premiumPurchase = inventory.getPurchase(Constants.SKU_PRO);
  if (premiumPurchase != null) {
      App.mHelper.consumeAsync(premiumPurchase, new IabHelper.OnConsumeFinishedListener() {
          @Override
          public void onConsumeFinished(Purchase purchase, IabResult result) {
              Log.d(TAG, "Test purchase is consumed.");
          }
      });
  }
  </code></pre>
  
  <p>I only run this code to cancel the test purchase and debug the complete purchase flow again.</p>