Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 66e3ef39 authored by Joe Fernandez's avatar Joe Fernandez
Browse files

docs: Tweak documentation for Google Play IAB test purchases

b/20228305

Change-Id: Iefd287e5c49679dd5dc493d8acf69136e922974b
parent 5db5ca1f
Loading
Loading
Loading
Loading
+24 −1
Original line number Diff line number Diff line
@@ -75,6 +75,7 @@ accounts, and automatically canceling the completed orders after 14 days. </p>
  the product's subscription period.
</p>


<h4 id="setup">Setting up test purchases</h4>

<p>It’s easy to set up test purchases&mdash;any user account can be chosen to be
@@ -104,6 +105,12 @@ none of the accounts has downloaded the app, the purchase is made with the first
account. Users can confirm the account that is making a purchase by expanding the
purchase dialog.</p>

<p class="note">
  <strong>Note:</strong> For test subscription purchases, leave the {@code orderId}
  field blank. You can use the {@code purchaseToken} field to identify test purchases.
</p>


<h4 id="tp-account">Test purchases and developer account</h4>
<p>Authorized license test accounts are associated with your developer account
in Google Play, rather than with a specific APK or package name. Identifying an
@@ -133,6 +140,22 @@ center, look up the transaction, and then cancel it. You can find transactions
by looking up their order numbers.</li>
</ul>

<p>
  You can cancel test subscriptions purchases from the app page in the Play Store,
  or use the 
  <a href="https://developers.google.com/android-publisher/api-ref/purchases/subscriptions/cancel">
  {@code cancel}</a> method.
</p>

<p class="caution">
  <strong>Important:</strong> The
  <a href="https://developers.google.com/android-publisher/api-ref/purchases/subscriptions/refund">
  {@code refund}</a> and
  <a href="https://developers.google.com/android-publisher/api-ref/purchases/subscriptions/revoke">
  {@code revoke}</a> methods do not support test purchases.
</p>


<h3 id="transations">Testing with real transactions</h3>
<p>As you prepare to launch an app that uses In-app Billing, you can make use of
Google Play alpha/beta release options to do validation and load testing on your