Android 应用内购买用户识别

发布于 2024-12-19 01:45:25 字数 91 浏览 4 评论 0原文

我正在将应用内购买添加到我的应用程序中。我必须向计费服务发送哪些详细信息才能完成购买流程。我的意思是我们需要发送任何用户邮件 ID(市场 ID)之类的吗?谁能帮助我吗?

I am adding in-app purchase to my app. What details do I have to send to billing service in order to do the purchase process. I mean do we need to send any user mail id (market id) or something? Can anyone help me?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

梦毁影碎の 2024-12-26 01:45:25

不,您无需执行任何应用内结算流程即可自动连接应用程序。您需要发送的只是要购买的商品的 productId,并且该商品应该已存在于您的应用页面上。更多信息请访问 http://developer.android.com/guide/market /billing/billing_admin.html

No you don't have to anything In-App Billing process automatically connects the app. All you need to send to is productId of the item to be purchased and that product should already exist on your app page. More info can be found on http://developer.android.com/guide/market/billing/billing_admin.html

ㄟ。诗瑗 2024-12-26 01:45:25

用户通过用于登录 Android Market 应用程序的 Google 帐户来识别。他们购买的托管产品与此帐户绑定,因此即使用户重置手机(或在其他设备上使用相同的帐户)也可以恢复它们。当您调用计费 API 时,它由 Android Market 自动发送。你不需要做任何特别的事情,它就可以工作(当它没有损坏时)。

Users are identified by the Google account they used to sign in to the Android Market app. Managed products they buy are tied to this account, so that they can be restored even if the user resets their phone (or uses the same account on another device). It is send automatically by the Android Market when you call the billing APIs. You don't have to do anything special, it just works (when it's not broken).

揽月 2024-12-26 01:45:25

它只发送产品 ID,但 BillingService 会在内部向 Android Market 发送一些信息,其中包括应用程序的包名称。该包名称足以识别您的应用程序。请参阅以下链接中的 BillingService 源代码(特别是第 164 行);

http://code.google.com /p/marketbilling/source/browse/src/com/example/dungeons/BillingService.java

It only sends product id but BillingService sends some information internally to the Android Market which includes the package name of your app. This package name is enough to identify your app. See the source code of BillingService at the following link (particularly line no 164);

http://code.google.com/p/marketbilling/source/browse/src/com/example/dungeons/BillingService.java

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文