Method: purchases.products.acknowledge
Mengonfirmasi pembelian item dalam aplikasi.
Permintaan HTTP
POST https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/purchases/products/{productId}/tokens/{token}:acknowledge
URL menggunakan sintaksis gRPC Transcoding.
Parameter jalur
Parameter |
packageName |
string
Nama paket aplikasi tempat produk dalam aplikasi dijual (misalnya, 'com.some.thing').
|
productId |
string
SKU produk dalam aplikasi (misalnya, 'com.some.thing.inapp1').
|
token |
string
Token yang diberikan ke perangkat pengguna saat produk dalam aplikasi dibeli.
|
Isi permintaan
Isi permintaan memuat data dengan struktur berikut:
Representasi JSON |
{
"developerPayload": string
} |
Kolom |
developerPayload |
string
Payload untuk dilampirkan pada pembelian.
|
Isi respons
Jika berhasil, isi respons akan kosong.
Cakupan otorisasi
Memerlukan cakupan OAuth berikut:
https://www.googleapis.com/auth/androidpublisher
Kecuali dinyatakan lain, konten di halaman ini dilisensikan berdasarkan Lisensi Creative Commons Attribution 4.0, sedangkan contoh kode dilisensikan berdasarkan Lisensi Apache 2.0. Untuk mengetahui informasi selengkapnya, lihat Kebijakan Situs Google Developers. Java adalah merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2024-12-17 UTC.
[null,null,["Terakhir diperbarui pada 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"]]