我编写了一个基于 Windows.Services.Store 的应用内购买系统
现在我希望确保我的用户得到他们所付出的代价。在旧版 API 中,我可以模拟购买。
如何才能让每次购买成功,而无需每次都从我的信用卡/PayPal 中注入(inject)真钱?
我无法返回到旧版 API。
最佳答案
How can I get each purchase to succeed without needing to feed it real money from my credit card/paypal each time?
在测试阶段,新的 API 不提供可用于在测试期间模拟许可证信息的类。因此,要模拟购买过程,您需要购买真实的产品。
如果您只需要获取产品以确保在购买附加组件后可以解锁正确的功能或服务,您可以 generate promotional code 通过开发中心无需喂钱即可获得您的产品:
另外,请在该文档中注意这一点:
In some cases the customer may see a Buy button instead of Install, even though the app was successfully redeemed via the promotional code. The customer can click Buy to install the app for no charge.
关于uwp - 使用 Windows.Services.Store Addons 模拟购买,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46295970/