存储托管附加组件 [英] Store Managed Add-Ons

查看:80
本文介绍了存储托管附加组件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

我正在开发一款应用程序,该应用程序将采用商店管理的耗材附加组件。我的问题是:商店语言似乎表明客户必须先购买所有耗材才能再次购买。我可以安排让客户在他们仍然有一部分时补充他们的消费品吗? 

I'm working on an app which will feature store-managed consumable add-ons. My question is this: The store language seems to indicate that customers have to use all of their consumable before they can purchase it again. Can i arrange to let customers refill their consumable when they still have a portion? 

例如,假设一位顾客从我那里购买了10个代币,并且消费了7个他们离开3.现在,让我们说客户想要执行一个花费4令牌的行动。如果不允许再购买10个令牌,因为他们没有完全消耗掉第一个
10,他们将如何购买足够的令牌来完成交易呢?

For example, let's say a customer buys 10 tokens from me, and have consumed 7 of them, leaving 3. Now, let's say the customer wants to perform an action that costs 4 tokens. If they aren't allowed to buy 10 more tokens because they haven't consumed the first 10 completely, how will they be able to buy enough tokens to complete the transaction?

推荐答案

您好JakeLester,

Hi JakeLester,

由于您使用的是商店管理的(=管理消耗品)耗材附件,客户可以再购买10个代币。因此,客户有13个令牌,他可以使用4个令牌,剩下9个令牌。

Since you're using Store-managed (= Managed Consumable) consumable add-on, the customer is able to buy 10 more tokens. So the customer has 13 tokens and he could consume 4 tokens and be left with 9 tokens.

在这种情况下,Microsoft会跟踪开发者的用户数量。用户可以根据需要多次购买10个令牌,然后开发人员可以调用
StoreContext.GetConsumableBalanceRemainingAsync 来查询用户拥有的数量。并且用户可以使用任何数量的这些消耗品。他们可以回购的数量没有限制(在合理范围内)。

In this case, Microsoft tracks the user's quantity for the developer. The user could purchase 10 tokens as many times as desired and then the developer can call StoreContext.GetConsumableBalanceRemainingAsync to query how many the user has. And the user can use any number of these consumables. There is no limit to the quantity they could repurchase (within reason).

祝你好运,

Mattew Wu

Mattew Wu


这篇关于存储托管附加组件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆