Android的应用内结算,多次购买同一项目的 [英] Android In-app Billing, multiple purchases of the same item
问题描述
有没有办法买到的倍数 项目的(SKU)?
Is there a way to buy a multiple of an item (SKU)?
例如:我有一个名为SKU的 LIFEPOINT ,然后我想买的 100 LIFEPOINT 。
For example: I have an SKU named LifePoint, and i want to buy 100 LifePoint.
(在另一个字的 N * my_item )。
(in another word N * my_item).
I found this workaround, but am looking for something better.
PS:使用应用内结算我'的第3版的,我的产品的未管理的(买我的产品很多次)
PS: I'am using In-app Billing Version 3 and my item is Unmanaged (to buy my product many times).
在此先感谢!
推荐答案
我是pretty确保它已作出刻意不可能做到这一点,以prevent应用程序窃取大量的钱从用户。每次购买需要使用的停止这种事情发生的谷歌应用内结算弹出的确认。
I'm pretty sure that it's been made deliberately impossible to do that to prevent apps from stealing large amounts of money from the user. Each purchase requires confirmation using the Google in-app billing popup which stops that kind of thing happening.
我做过类似的东西的方法是设置不同的SKU(如回答您链接到),但使用SKU标题字段来决定多少项目,奖励玩家。如果你这样做的,你可以很容易地更改谷歌播放控制台这些值,而无需更新您的应用程序。
The way I've done something similar is to set up different SKU's (as in the answer you linked to) but to use the SKU 'title' field to decide how many items to award the player. If you do it that way you can easily change those values in the Google Play console without having to update your app.
这篇关于Android的应用内结算,多次购买同一项目的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!