title: How do I test Google Play Android subscription?
body: <p>How do I test a Google Play Android subscriptions and Google API?</p>
  
  <ol>
  <li>The app is uploaded, but not published.</li>
  <li>The APK is activated.</li>
  <li>The subscription product id is published.</li>
  <li>I tried to purchase subscription on totally unrelated phone, not my account.</li>
  <li>All accounts I tested  are listed in Android Developer Console > Edit Profile</li>
  <li>The BILLING_REQUEST_ITEM_TYPE is set to "subs". </li>
  <li>The BILLING_REQUEST_API_VERSION is set to 2.</li>
  <li><p>The app is signed and a release version, <code>ant release installr</code>.</p>
  
  <pre><code>IGNORE THIS: When I try to purchase a subscription, it displays the subscription description, but immediately says "The item you are requesting to purchase is not available."
  </code></pre></li>
  </ol>
  
  <p>I cannot test the Google Android Publisher web API, <a href="https://developers.google.com/android-publisher/v1/purchases/get" rel="nofollow">https://developers.google.com/android-publisher/v1/purchases/get</a></p>
  
  <pre><code>IGNORE THIS: It requires a user subscription token but I can't get a token without buying a subscription!
  </code></pre>
  
  <p>Ok somehow it started to work and I was able to purchase a subscription. However, there was an error in my script on the server so I was not able to save the user subscription token. Now when I try to repurchase the subscription, it says "You already own this subscription." </p>
  
  <p>When I click Details, it says "Item not found." with a Retry button!</p>
  
  <p>I feel like I'm the only one in the world trying to use this API!</p>
  
  <p>Additionally, there is an error in the Google billing API. I do not call <code>mBillingService.confirmNotifications()</code> until after I receive a confirmation from the server that the subscription was saved, yet I see a charge/deposit in my merchant account.</p>