diff options
| author | Andrew Solovay <asolovay@google.com> | 2015-02-18 11:13:30 +0000 |
|---|---|---|
| committer | Android Git Automerger <android-git-automerger@android.com> | 2015-02-18 11:13:30 +0000 |
| commit | 2b40531c627ff491bbcc81df19c71b01aa762ae0 (patch) | |
| tree | 9919f98d38c43def41bed5feba8974e8573a902d /docs/html | |
| parent | 263b8fb778282e56d020bd39391df78b0f1f2653 (diff) | |
| parent | 875b278c75de654d24224858aab3a6863540e319 (diff) | |
| download | frameworks_base-2b40531c627ff491bbcc81df19c71b01aa762ae0.zip frameworks_base-2b40531c627ff491bbcc81df19c71b01aa762ae0.tar.gz frameworks_base-2b40531c627ff491bbcc81df19c71b01aa762ae0.tar.bz2 | |
am 875b278c: am 6d6d0f91: am 46e881de: am 4eb14e02: am d4c63b98: am fd454a57: Merge "docs: Noted that purchaseToken is long and cannot be truncated." into lmp-docs automerge: 8d5ba01
* commit '875b278c75de654d24224858aab3a6863540e319':
docs: Noted that purchaseToken is long and cannot be truncated.
Diffstat (limited to 'docs/html')
| -rw-r--r-- | docs/html/google/play/billing/billing_integrate.jd | 12 | ||||
| -rw-r--r-- | docs/html/google/play/billing/billing_reference.jd | 7 |
2 files changed, 16 insertions, 3 deletions
diff --git a/docs/html/google/play/billing/billing_integrate.jd b/docs/html/google/play/billing/billing_integrate.jd index 052cf75..e3cacf9 100644 --- a/docs/html/google/play/billing/billing_integrate.jd +++ b/docs/html/google/play/billing/billing_integrate.jd @@ -232,7 +232,7 @@ startIntentSenderForResult(pendingIntent.getIntentSender(), 1001, new Intent(), Integer.valueOf(0), Integer.valueOf(0), Integer.valueOf(0)); </pre> -<p>Google Plays sends a response to your {@link android.app.PendingIntent} to the {@link android.app.Activity#onActivityResult onActivityResult} method of your application. The {@link android.app.Activity#onActivityResult onActivityResult} method will have a result code of {@code Activity.RESULT_OK} (1) or {@code Activity.RESULT_CANCELED} (0). To see the types of order information that is returned in the response {@link android.content.Intent}, see <a href="{@docRoot}google/play/billing/billing_reference.html#getBuyIntent">In-app Billing Reference</a>.</p> +<p>Google Play sends a response to your {@link android.app.PendingIntent} to the {@link android.app.Activity#onActivityResult onActivityResult} method of your application. The {@link android.app.Activity#onActivityResult onActivityResult} method will have a result code of {@code Activity.RESULT_OK} (1) or {@code Activity.RESULT_CANCELED} (0). To see the types of order information that is returned in the response {@link android.content.Intent}, see <a href="{@docRoot}google/play/billing/billing_reference.html#getBuyIntent">In-app Billing Reference</a>.</p> <p>The purchase data for the order is a String in JSON format that is mapped to the {@code INAPP_PURCHASE_DATA} key in the response {@link android.content.Intent}, for example: <pre> @@ -243,11 +243,19 @@ startIntentSenderForResult(pendingIntent.getIntentSender(), "purchaseTime":1345678900000, "purchaseState":0, "developerPayload":"bGoa+V7g/yqDXvKRqq+JTFn4uQZbPiQJo4pf9RzJ", - "purchaseToken":"rojeslcdyyiapnqcynkjyyjh" + "purchaseToken":<em>"opaque-token-up-to-1000-characters"</em> }' </pre> </p> +<p class="note"><strong>Note:</strong> Google Play generates a token for the +purchase. This token is an opaque character sequence that may be up to 1,000 +characters long. Pass this entire token to other methods, such as when you +consume the purchase, as described in +<a href="{@docRoot}training/in-app-billing/purchase-iab-products.html#Consume">Consume +a Purchase</a>. Do not abbreviate or truncate this token; you must save and +return the entire token.</p> + <p>Continuing from the previous example, you get the response code, purchase data, and signature from the response {@link android.content.Intent}.</p> <pre> @Override diff --git a/docs/html/google/play/billing/billing_reference.jd b/docs/html/google/play/billing/billing_reference.jd index 902c2c6..da9178d 100644 --- a/docs/html/google/play/billing/billing_reference.jd +++ b/docs/html/google/play/billing/billing_reference.jd @@ -202,7 +202,12 @@ RSASSA-PKCS1-v1_5 scheme.</td> </tr> <tr> <td>{@code purchaseToken}</td> - <td>A token that uniquely identifies a purchase for a given item and user pair. </td> + <td>A token that uniquely identifies a purchase for a given item and user + pair. This token may be up to 1,000 characters long. + Pass this entire token to other methods, such as when you consume the + purchase (as described in +<a href="{@docRoot}training/in-app-billing/purchase-iab-products.html#Consume">Consume + a Purchase</a>). Do not abbreviate or truncate this token.</td> </tr> </table> </p> |
