android - 将应用内结算版本 2 迁移到版本 3 的最佳方法是什么?

标签 android in-app-billing android-pay

我在星期五收到了一封来自 Google 电子钱包的电子邮件,内容是:

Our records indicate you are a Play Apps developer who may be using Google Checkout APIs for notifications or reporting. On May 20, we announced that we will be replacing these APIs.

We provided replacement Play APIs, as of July 25, and anyone using the Checkout >notifications or reporting APIs needs to implement the Play APIs by August 22 to prevent >disruption to your scripts.

If you used the Checkout API for notifications, use the Play Purchase Status API. If you >used the Checkout API for reporting, you can automate the download of your estimated sales >and earning reports via the gsutil utility

我假设我必须使用的 Google Checkout API 与我拥有的应用内结算版本 2 实现相关。它依靠计费服务通过本地通知与 Google Play 商店应用共享进程间通信。所以我认为我应该查看 Play Purchase Status API。我调查了一下,但我想知道是否有任何教程或更好的文档来说明从旧的应用内结算版本 2 过渡到使用新的 Google Play Developer API 的过程。

Play 购买状态 API 页面指出:

The API is designed to be used from your backend servers as a way of securely managing in-app products and subscriptions, as well as extending and integrating them with other services.

这确实让我更加困惑,因为所有购买请求和 token 都由设备上的 Android 应用程序处理。我的后端服务器只记录我的应用程序通过网络服务调用发送给它的信息。我的后端服务器现在是否需要通过 Play Purchase Status API 定期轮询 Google 电子钱包服务器?

最佳答案

谷歌现在已经发出电子邮件,是的,他们正在关闭应用内结算的 V2。我写了一篇讨论如何迁移的博文(与其说是迁移,不如说是重写)。

http://www.innodroid.com/blog/post/migrating-from-in-app-billing-v2-to-v3

希望这能帮助其他人。 V3 完全不同(尽管在我看来更容易理解和维护)。

关于android - 将应用内结算版本 2 迁移到版本 3 的最佳方法是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18434923/

相关文章:

android - 如何将对话框置于 fragment 中心?

android - Google应用内结算: Using In-App-Billing Version 3,仍然谷歌提到交易发生在应用内结算版本2中

Android In app billing - 删除安全类依赖

Android Pay - 完整的电子钱包确认结果代码 1 和错误代码 10

android - 在 Android 中 react native 多包

android - 如何将 Listview 链接到 AlertDialog

Android fragment 事件监听器

android - 应用内结算切换 Activity

typescript - 输入gapi.savetoandroidpay

xamarin - Xamarin Forms 中的 Google 钱包/Android Pay 集成