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.
Google Play の課金システムは、両方の購入タイプについてリアルタイム デベロッパー通知(RTDN)を送信します。バックエンドはそのメッセージをインポートし、必要な変更を行えるようにしておく必要があります。購入ライフサイクルの管理に RTDN クライアントと Google Play Developer API を使用する方法については、購入ライフサイクル ガイドをご覧ください。
不正行為と不正使用の防止
機密性の高いロジックをバックエンドに移動し、Google Play での取り消し済みの購入をモニタリングすることで、不正使用を防ぎます。Google Play Developer API には、新規購入の承認、アプリ内アイテム購入の消費、取り消し済みの購入の処理を行う関数が用意されています。不正行為と不正使用を防止する方法について詳細は、不正行為や不正使用に対処するをご覧ください。
[[["わかりやすい","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"]],["最終更新日 2025-07-27 UTC。"],[],[],null,["# Integrate Google Play with your server backend\n\nYour secure server backend plays a key role in your app's management of in-app\npurchases through Google Play. Google Play's billing system provides a way to\nmanage the most important aspects of your digital product business, from setting\nup the catalog to tracking your transactions.\n**Figure 1.** Diagram of a typical backend integration with Google Play's billing system.\n\nThe [Google Play Developer API](https://developers.google.com/android-publisher)\nincludes several endpoints to keep your backend in sync with the Google Play\nbackend. In particular, the [Subscriptions and in-app purchases\nAPI](https://developers.google.com/android-publisher#subscriptions) handles\nfunctionality related to your digital product sales on Google Play.\n**Figure 2.** Billing-related endpoints provided by the Google Play Developer API.\n\nAutomated digital product catalog management\n--------------------------------------------\n\nThere are many use cases where it's potentially useful to have a digital product\ncatalog management integration in your backend. For example, this integration\ncould enable you to do the following:\n\n- Keep a mirror of your products' details on your backend for access when granting entitlements.\n- Set up a batch process to update all of your prices automatically.\n- Connect your own catalog management system with the catalog in Google Play's billing system to make sure it's updated synchronously.\n\nYou can use the\n[`monetization.subscriptions`](https://developers.google.com/android-publisher/api-ref/rest/v3/monetization.subscriptions)\nand\n[`inappproducts`](https://developers.google.com/android-publisher/api-ref/rest/v3/inappproducts)\nendpoints to manage your digital product catalog.\n\nPurchase lifecycle management and entitlement sync\n--------------------------------------------------\n\nMonitoring purchase lifecycle events is essential for quick, accurate response\nto changes in your users' entitlements. You should build purchase status\nmanagement into your backend for both subscriptions and one-time purchases so\nthat all of your purchases are secure and all of your entitlements are\nconsistent.\n\nGoogle Play's billing system sends [Real-time developer\nnotifications](/google/play/billing/rtdn-reference) (RTDN) for both types of\npurchase, and your backend should be ready to import these messages and make the\nnecessary changes. To learn how to leverage an RTDN client and the\nGoogle Play Developer API to manage your purchase lifecycle, see the\n[purchase lifecycle guide](/google/play/billing/lifecycle).\n\nFraud and abuse prevention\n--------------------------\n\nPrevent abuse by moving sensitive logic to your backend and monitoring voided\npurchases on Google Play. The Google Play Developer API offers functions\nto acknowledge new purchases, consume in-app product purchases, and handle\nvoided purchases. To learn more about preventing fraud and abuse, see [Fight\nfraud and abuse](/google/play/billing/security).\n\nAutomated financial conciliation and reporting\n----------------------------------------------\n\nYou can import your reporting data from Google Play by downloading your [Play\nConsole\nreports](https://support.google.com/googleplay/android-developer/answer/6135870).\nYou can leverage [Google Cloud Storage APIs](https://cloud.google.com/storage/)\nto download the information available to you on the Play Console to address any\nuse cases related to this information.\n\nExternal transaction management\n-------------------------------\n\nIf you are integrating with the\n[alternative billing](/google/play/billing/alternative) or\n[external offers](/google/play/billing/external) APIs, use\nthe [`Externaltransactions APIs`](/google/play/billing/outside-gpb-backend)\nto report and manage completed transactions."]]