Android 应用内计费和自己的数据服务器
今天我需要有应用内结算经验的人们的帮助。
让我拥有自己的服务器,其中包含来自 Market 的应用程序的数字内容以及一些具有计费支持的应用程序。用户从市场下载它并想要购买附加功能。他使用账单支付了费用,接下来该怎么办?
我必须使用应用程序中的内容调用我自己的服务器的某些方法,或者市场可以向它发送一些包含有关购买内容的信息的请求吗?
我想说,下载购买内容的逻辑必须在应用程序中实现,只有从这里我才能开始下载购买内容,或者市场服务器可以向我的服务器发送一些带有内容的信息?
Today I need some help from peoples, who have experience in In-app Billing.
Let I have my own server with digital content for applications from Market and some applications with billing support. User download it from the market and want to buy additional functionality. He paid for it, using billing, and what to to next?
I must invoke some method's of my own server with content from application or Market can send some request to it with information about bought content?
I want to say, logic for downloading bought content must be implemented in application and only from here i can begin to download bought content or market server can send some information to my server with content?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我建议查看 Google 提供的示例计费应用程序。从逻辑上讲,在你购买了一些东西之后。您将通过广播接收器收到意图。此意图包含进行查询以询问用户购买了什么所需的所有信息。获得完整订单信息后,您可以调用自己的服务器来验证购买并让应用程序下载内容。
这是文档的链接。
http://developer.android.com/guide/market/billing/billing_overview.html
仔细查看消息传递序列部分。
I recommend looking at the sample billing app provided by Google. Logically, after you have purchased something. You will receive an intent via a broadcastreceiver. This intent have all the information you need to make a query to ask what the user has purchased. After you have get the whole order info, you can make a call to your own server to verify the purchase and let the application download the content.
Here is the link to the documentation.
http://developer.android.com/guide/market/billing/billing_overview.html
look closely at the Messaging sequence section.