如何检查用户是否在Android上付款?

前端之家收集整理的这篇文章主要介绍了如何检查用户是否在Android上付款?前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我想在我的 Android应用程序中使用应用内结算(而不是创建2个应用程序版本 – 免费和专业版).如果用户付费,则首选项中的其他选项应该可用.
我的应用程序与网站(而不是我的)同步数据.
每次同步发生时,我想检查用户是否付款.
我该怎么办?

解决方法

我认为最简单的方法是使用托管购买.更多的是在 http://developer.android.com/guide/market/billing/billing_admin.html#billing-purchase-type

The “manage by user account” purchase
type is useful if you are selling
items such as game levels or
application features. These items are
not transient and usually need to be
restored whenever a user reinstalls
your application,wipes the data on
their device,or installs your
application on a new device.

更新:网站和API更新提到现在https://developer.android.com/google/play/billing/api.html

原文链接:https://www.f2er.com/android/313433.html

猜你在找的Android相关文章