Method: purchases.products.acknowledge
אישור רכישה של פריט מתוך האפליקציה.
בקשת HTTP
POST https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/purchases/products/{productId}/tokens/{token}:acknowledge
כתובת ה-URL משתמשת בתחביר של Transcoding של gRPC.
פרמטרים של נתיב
פרמטרים |
packageName |
string
שם החבילה של האפליקציה שבה המוצר שזמין מתוך האפליקציה נמכר (לדוגמה, 'com.some.thing').
|
productId |
string
המק"ט של המוצר מתוך האפליקציה (לדוגמה, 'com.some.thing.inapp1').
|
token |
string
האסימון שסופק למכשיר של המשתמש כשהתרחשה הרכישה של המוצר מתוך האפליקציה.
|
גוף הבקשה
גוף הבקשה מכיל נתונים במבנה הבא:
ייצוג ב-JSON |
{
"developerPayload": string
} |
שדות |
developerPayload |
string
נתוני עומס (payload) שצריך לצרף לרכישה.
|
גוף התשובה
אם הפעולה בוצעה ללא שגיאות, גוף התגובה יהיה ריק.
היקפי הרשאה
נדרש היקף הרשאות OAuth הבא:
https://www.googleapis.com/auth/androidpublisher
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2024-12-17 (שעון UTC).
[null,null,["עדכון אחרון: 2024-12-17 (שעון UTC)."],[[["Acknowledges a purchase of an in-app product using the provided product and package information."],["Requires `packageName`, `productId`, and purchase `token` as path parameters for identification."],["Optionally accepts a `developerPayload` in the request body for attaching additional data."],["Utilizes the `https://www.googleapis.com/auth/androidpublisher` authorization scope."],["A successful acknowledgement results in an empty response body, confirming the action."]]],["This document details the process of acknowledging an in-app purchase. It uses a `POST` request to the specified URL, including the `packageName`, `productId`, and `token` as path parameters. The request body requires a JSON structure with a `developerPayload` string. Successful acknowledgement results in an empty response body. This process requires `https://www.googleapis.com/auth/androidpublisher` OAuth scope for authorization. The process includes a try it out functionality.\n"]]