使用 Windows.Services.Store 插件模拟购买

Simulate purchase with Windows.Services.Store Addons

我编写了一个基于 Windows.Services.Store

的应用内购买系统

现在我希望确保我的用户物有所值。在较旧的 API 中,我可以模拟购买。

我怎样才能让每次购买都成功,而不需要每次都从我的信用卡 card/paypal 中支付真钱?

我不能return给大哥API。

How can I get each purchase to succeed without needing to feed it real money from my credit card/paypal each time?

在测试阶段,新的 API 不提供可用于在测试期间模拟许可证信息的 class。所以,要模拟购买过程,您需要购买真实的产品。

如果您只是需要获取产品以确保在 add-on 购买后可以解锁正确的功能或服务,您可以 generate promotional code通过 Dev Center 获得您的产品而无需投钱:

此外,请在该文档中注意这一点:

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.