Reminder: By Aug 31, 2026, all new apps and updates to existing apps must use Billing Library version 8 or later. If you need more time to update your app, you can request an extension until Nov 1, 2026. Learn about
Play Billing Library version deprecation .
Google 會運用 AI 技術將內容翻譯成你偏好的語言,但可能會出錯。
提供意見
查詢購買記錄
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
Play 帳款服務程式庫第 7 版已淘汰 queryPurchaseHistory()。本頁面說明應用程式可能依賴 queryPurchaseHistory() 的用途,以及建議的替代做法。
處理購買交易
如要擷取待處理的購買交易,請使用 queryPurchasesAsync(QueryPurchaseParams, PurchasesResponseListener) 。
詳情請參閱整合指南的「處理購買交易 」一節。
處理已取消的購買交易
如要擷取已取消或無效的交易,請使用無效交易 伺服器開發人員 API。
追蹤歷史購買記錄
如果應用程式想追蹤使用者的購買記錄,請在應用程式後端追蹤記錄。
提供意見
這個頁面中的內容和程式碼範例均受《內容授權 》中的授權所規範。Java 與 OpenJDK 是 Oracle 和/或其關係企業的商標或註冊商標。
上次更新時間:2026-08-07 (世界標準時間)。
想進一步說明嗎?
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["缺少我需要的資訊","missingTheInformationINeed","thumb-down"],["過於複雜/步驟過多","tooComplicatedTooManySteps","thumb-down"],["過時","outOfDate","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["示例/程式碼問題","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2026-08-07 (世界標準時間)。"],[],[]]