Reminder: By Aug 31, 2025, all new apps and updates to existing apps must use Billing Library version 7 or newer. If you need more time to update your app, you can request an extension until Nov 1, 2025. Learn about
Play Billing Library version deprecation.
購入履歴をクエリする
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
queryPurchaseHistory()
は Play Billing Library 7 で非推奨になりました。このページでは、アプリが queryPurchaseHistory()
に依存していた可能性があるユースケースに推奨される代替方法について説明します。
購入手続き
処理する購入を取得するには、queryPurchasesAsync(QueryPurchaseParams, PurchasesResponseListener)
を使用します。
詳しくは、統合ガイドの購入を処理するをご覧ください。
取り消し済みの購入を処理する
取り消し済みまたはキャンセル済みの購入を取得するには、取り消し済み購入サーバー デベロッパー API を使用します。
過去の購入を追跡する
アプリでユーザーの購入履歴を追跡する場合は、アプリのバックエンドで履歴を追跡する必要があります。
このページのコンテンツやコードサンプルは、コンテンツ ライセンスに記載のライセンスに従います。Java および OpenJDK は Oracle および関連会社の商標または登録商標です。
最終更新日 2025-07-27 UTC。
[null,null,["最終更新日 2025-07-27 UTC。"],[],[],null,["# Query Purchase History\n\n`queryPurchaseHistory()` was deprecated in Play Billing Library 7. This page\ndescribes the recommended alternatives for use cases your app may have relied on\n`queryPurchaseHistory()` for.\n\nProcess Purchases\n-----------------\n\nTo retrieve purchases for processing, use\n[`queryPurchasesAsync(QueryPurchaseParams, PurchasesResponseListener)`](/reference/com/android/billingclient/api/BillingClient#queryPurchasesAsync(com.android.billingclient.api.QueryPurchasesParams,com.android.billingclient.api.PurchasesResponseListener)).\n\nSee the [Processing Purchases](/google/play/billing/integrate#process) section of our integration\nguide\nfor more details.\n\nHandle Voided Purchases\n-----------------------\n\nTo fetch voided or cancelled purchases, use the\n[voided purchases](https://developers.google.com/android-publisher/voided-purchases) server developer API.\n\nTrack Historical Purchases\n--------------------------\n\nIf your app would like to track a user's purchase history your app should\nkeep track of the history on your apps backend."]]