Method: purchases.products.acknowledge
HTTP 要求
POST https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/purchases/products/{productId}/tokens/{token}:acknowledge
這個網址使用 gRPC 轉碼語法。
路徑參數
參數 |
packageName |
string
售出應用程式內產品的應用程式套件名稱 (例如「com.some.thing」)。
|
productId |
string
應用程式內產品 SKU (例如「com.some.thing.inapp1」)。
|
token |
string
購買應用程式內產品時,提供給使用者裝置的權杖。
|
要求主體
要求主體的資料會採用以下結構:
JSON 表示法 |
{
"developerPayload": string
} |
欄位 |
developerPayload |
string
要附加至購買交易的酬載。
|
授權範圍
需要下列 OAuth 範圍:
https://www.googleapis.com/auth/androidpublisher
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2024-12-17 (世界標準時間)。
[null,null,["上次更新時間:2024-12-17 (世界標準時間)。"],[[["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"]]