使用应用内购买购买积分
我的要求是什么?
我想在应用程序中实现应用内购买功能。
我将在应用程序中添加一些应用程序内购买,如下所示: 购买 50 个积分:0.99 美元
购买 200 个积分:1.99 美元
购买 400 个积分:2.99 美元
因此,假设用户以 0.99 美元购买 50 个积分。
假设几天后,10 天后,用户用完所有这 50 个积分。他想购买更多积分。然后他以 1.99 美元购买了 200 个积分。
我们可以追踪该用户使用了他所有的积分,并且我们将要求用户购买更多的积分。
但哪种类型的应用内购买更适合呢?
假设,我在应用程序购买中实现了“Consumable”。 然后我想会有一些时间段,比如1个月、2个月、3个月。然后用户必须再次购买该功能。
但就我而言,我们不知道用户何时会使用他的积分。喜欢的用户可以在 10 天内使用所有积分。或者用户可以在 2 个月内使用所有积分。
因此,我们要求用户在完成现有学分后支付更多学分。
我希望这足以理解。
有谁知道如何实现这一应用内购买吗?
谢谢。
What my requirement is?
I want to implement the In-App purchase functionality in app.
I will add some In-App purchase in app like below:
Buy 50 Credits: $0.99
Buy 200 Credits: $1.99
Buy 400 Credits: $2.99
So, suppose user buy the 50 Credits in $0.99.
And after some days suppose, after 10 days, user uses all these 50 credits. And he wants to buy more credits. Then he is purchased 200 credits in $1.99.
We can tract that user uses all his credits and we will ask to user to buy more credits.
But what type of In-App purchase will be better for that?
Suppose, I implement "Consumable" In App purchase.
Then I think there will be some time period like 1 month, 2 month, 3 month. And then user has to buy the feature again.
But in my case, we don't know, when user will use his credits. like user can use all credits in 10 days. OR user can use all credits in 2 months.
So, we ask to user to pay for more credits once he complete his existing credits.
I hope it will be enough to understand.
Has any one idea how can I achieve this InApp purchase?
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
消耗品才是正确的做法。用户必须在指定的时间间隔后购买是不正确的。
他可以随时购买积分,你只需要在他购买时不断添加他当前的积分,在他使用时不断扣除即可。
Consumable is the correct approach. It is not true that user will have to buy after a specified interval of time.
He can buy credits whenever he wants, you just need to keep adding his current credits when he buys them, and keep deducting them when he uses them.