1<html><body> 2<style> 3 4body, h1, h2, h3, div, span, p, pre, a { 5 margin: 0; 6 padding: 0; 7 border: 0; 8 font-weight: inherit; 9 font-style: inherit; 10 font-size: 100%; 11 font-family: inherit; 12 vertical-align: baseline; 13} 14 15body { 16 font-size: 13px; 17 padding: 1em; 18} 19 20h1 { 21 font-size: 26px; 22 margin-bottom: 1em; 23} 24 25h2 { 26 font-size: 24px; 27 margin-bottom: 1em; 28} 29 30h3 { 31 font-size: 20px; 32 margin-bottom: 1em; 33 margin-top: 1em; 34} 35 36pre, code { 37 line-height: 1.5; 38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; 39} 40 41pre { 42 margin-top: 0.5em; 43} 44 45h1, h2, h3, p { 46 font-family: Arial, sans serif; 47} 48 49h1, h2, h3 { 50 border-bottom: solid #CCC 1px; 51} 52 53.toc_element { 54 margin-top: 0.5em; 55} 56 57.firstline { 58 margin-left: 2 em; 59} 60 61.method { 62 margin-top: 1em; 63 border: solid 1px #CCC; 64 padding: 1em; 65 background: #EEE; 66} 67 68.details { 69 font-weight: bold; 70 font-size: 14px; 71} 72 73</style> 74 75<h1><a href="androidpublisher_v3.html">Google Play Android Developer API</a> . <a href="androidpublisher_v3.purchases.html">purchases</a> . <a href="androidpublisher_v3.purchases.products.html">products</a></h1> 76<h2>Instance Methods</h2> 77<p class="toc_element"> 78 <code><a href="#acknowledge">acknowledge(packageName, productId, token, body=None, x__xgafv=None)</a></code></p> 79<p class="firstline">Acknowledges a purchase of an inapp item.</p> 80<p class="toc_element"> 81 <code><a href="#close">close()</a></code></p> 82<p class="firstline">Close httplib2 connections.</p> 83<p class="toc_element"> 84 <code><a href="#get">get(packageName, productId, token, x__xgafv=None)</a></code></p> 85<p class="firstline">Checks the purchase and consumption status of an inapp item.</p> 86<h3>Method Details</h3> 87<div class="method"> 88 <code class="details" id="acknowledge">acknowledge(packageName, productId, token, body=None, x__xgafv=None)</code> 89 <pre>Acknowledges a purchase of an inapp item. 90 91Args: 92 packageName: string, The package name of the application the inapp product was sold in (for example, 'com.some.thing'). (required) 93 productId: string, The inapp product SKU (for example, 'com.some.thing.inapp1'). (required) 94 token: string, The token provided to the user's device when the inapp product was purchased. (required) 95 body: object, The request body. 96 The object takes the form of: 97 98{ # Request for the product.purchases.acknowledge API. 99 "developerPayload": "A String", # Payload to attach to the purchase. 100} 101 102 x__xgafv: string, V1 error format. 103 Allowed values 104 1 - v1 error format 105 2 - v2 error format 106</pre> 107</div> 108 109<div class="method"> 110 <code class="details" id="close">close()</code> 111 <pre>Close httplib2 connections.</pre> 112</div> 113 114<div class="method"> 115 <code class="details" id="get">get(packageName, productId, token, x__xgafv=None)</code> 116 <pre>Checks the purchase and consumption status of an inapp item. 117 118Args: 119 packageName: string, The package name of the application the inapp product was sold in (for example, 'com.some.thing'). (required) 120 productId: string, The inapp product SKU (for example, 'com.some.thing.inapp1'). (required) 121 token: string, The token provided to the user's device when the inapp product was purchased. (required) 122 x__xgafv: string, V1 error format. 123 Allowed values 124 1 - v1 error format 125 2 - v2 error format 126 127Returns: 128 An object of the form: 129 130 { # A ProductPurchase resource indicates the status of a user's inapp product purchase. 131 "acknowledgementState": 42, # The acknowledgement state of the inapp product. Possible values are: 0. Yet to be acknowledged 1. Acknowledged 132 "consumptionState": 42, # The consumption state of the inapp product. Possible values are: 0. Yet to be consumed 1. Consumed 133 "developerPayload": "A String", # A developer-specified string that contains supplemental information about an order. 134 "kind": "A String", # This kind represents an inappPurchase object in the androidpublisher service. 135 "obfuscatedExternalAccountId": "A String", # An obfuscated version of the id that is uniquely associated with the user's account in your app. Only present if specified using https://developer.android.com/reference/com/android/billingclient/api/BillingFlowParams.Builder#setobfuscatedaccountid when the purchase was made. 136 "obfuscatedExternalProfileId": "A String", # An obfuscated version of the id that is uniquely associated with the user's profile in your app. Only present if specified using https://developer.android.com/reference/com/android/billingclient/api/BillingFlowParams.Builder#setobfuscatedprofileid when the purchase was made. 137 "orderId": "A String", # The order id associated with the purchase of the inapp product. 138 "productId": "A String", # The inapp product SKU. 139 "purchaseState": 42, # The purchase state of the order. Possible values are: 0. Purchased 1. Canceled 2. Pending 140 "purchaseTimeMillis": "A String", # The time the product was purchased, in milliseconds since the epoch (Jan 1, 1970). 141 "purchaseToken": "A String", # The purchase token generated to identify this purchase. 142 "purchaseType": 42, # The type of purchase of the inapp product. This field is only set if this purchase was not made using the standard in-app billing flow. Possible values are: 0. Test (i.e. purchased from a license testing account) 1. Promo (i.e. purchased using a promo code) 2. Rewarded (i.e. from watching a video ad instead of paying) 143 "quantity": 42, # The quantity associated with the purchase of the inapp product. 144 "regionCode": "A String", # ISO 3166-1 alpha-2 billing region code of the user at the time the product was granted. 145}</pre> 146</div> 147 148</body></html>