1 page.title= API 2 parent.title=In-app Billing 3 parent.link=index.html 4 @jd:body 5 6 <div id="qv-wrapper"> 7 <div id="qv"> 8 9 <h2></h2> 10 <ol> 11 <li><a href="#producttypes"></a> 12 <ol> 13 <li><a href="#managed"></a><li> 14 <li><a href="#subs"></a><li> 15 </li></li></li></li></ol> 16 </li> 17 <li><a href="#purchase"></a></li> 18 <li><a href="#consume"></a> 19 <ol> 20 <li><a href="#consumetypes"></a><li> 21 <li><a href="#managingconsumables"></a><li> 22 </li></li></li></li></ol> 23 </li> 24 <li><a href="#caching"></a></li> 25 </ol> 26 27 <h2></h2> 28 <ol> 29 <li><a href="{@docRoot}google/play/billing/billing_reference.html"> (V3)</a></li> 30 </ol> 31 32 <h2></h2> 33 <ol> 34 <li><a href="{@docRoot}training/in-app-billing/index.html"></a></li> 35 </ol> 36 </div> 37 </div> 38 39 <p> API 3 API </p> 40 41 <h2 id="producttypes"></h2> 42 <p> Google Play SKU<a href="{@docRoot}google/play/billing/billing_admin.html"></a>API 3 </p> 43 <h3 id="managed"></h3> 44 <p> Google Play Google Play Google Play Google Play </p> 45 <p> API 3 Google Play <a href="#consume"></a></p> 46 47 <h3 id="subs"></h3> 48 <p><a href="{@docRoot}google/play/billing/billing_subscriptions.html"></a></p> 49 <p> API 3 <a href="{@docRoot}google/play/billing/billing_integrate.html#Subs"></a></p> 50 <p class="caution"><strong></strong></p> 51 52 <h2 id="purchase"></h2> 53 54 <div class="figure" style="width:430px"> 55 <img src="{@docRoot}images/in-app-billing/v3/iab_v3_purchase_flow.png" id="figure1" height="530" /> 56 <p class="img-caption"> 57 <strong> 1. </strong> 58 </p> 59 </div> 60 61 <p>API 3 62 <ol> 63 <li> Google Play <code>isBillingSupported</code> API </li> 64 <li> Google Play <code>getPurchases</code> Google Play <code>Bundle</code> ID </li> 65 <li> Google Play <code>getSkuDetails</code> ID Google Play <code>Bundle</code> 66 </li> 67 <li> <code>getBuyIntent</code> ID ID 68 <ol type="a"> 69 <li>Google Play <code>Bundle</code> <code>PendingIntent</code></li> 70 <li> <code>startIntentSenderForResult</code> PendingIntent</li> 71 <li>Google Play <code>onActivityResult</code> <code>Intent</code><code>onActivityResult</code> <code>Intent</code> Google Play <code>purchaseToken</code> <code>Intent</code> </li> 72 </ol> 73 </li> 74 </ol> 75 </p> 76 <p> API 3 <a href="{@docRoot}google/play/billing/billing_reference.html"></a></p> 77 78 <h2 id="consume"></h2> 79 <p></p> 80 <p> 3 Google Play Google Play Google Play Google Play </p> 81 <div class="figure" style="width:420px"> 82 <img src="{@docRoot}images/in-app-billing/v3/iab_v3_consumption_flow.png" id="figure2" height="300" /> 83 <p class="img-caption"> 84 <strong> 2. </strong> 85 </p> 86 </div> 87 <p> Google Play <code>getPurchases</code> <code>consumePurchase</code> <code>purchaseToken</code> Google Play Google Play </p> 88 89 <h3 id="consumetypes"></h3> 90 <p></p> 91 <dl> 92 <dt></dt> 93 <dd> Google </dd> 94 <dt></dt> 95 <dd><em></em> 96 <p class="note"><strong></strong> Google Play </p> 97 </dd> 98 </dl> 99 <h3 id="managingconsumables"></h3> 100 <p></p> 101 <ol> 102 <li> <code>getBuyIntent</code> </li> 103 <li> Google Play <code>Bundle</code></li> 104 <li> <code>consumePurchase</code> </li> 105 <li> Google Play </li> 106 <li></li> 107 </ol> 108 <p></p> 109 <ol> 110 <li> <code>getPurchases</code> </li> 111 <li> <code>consumePurchase</code> </li> 112 <li> Google Play </li> 113 <li></li> 114 </ol> 115 116 <h2 id="caching"></h2> 117 <p> Google Play API 3 <code>getPurchases</code> API API 3 Google Play API </p> 118