uwp - 使用 Windows.Services.Store Addons 模拟购买

标签 uwp windows-store-apps windows-store

我编写了一个基于 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 通过开发中心无需喂钱即可获得您的产品:

enter image description here

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

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/

相关文章:

c# - 通用 Windows 10 WebView - 如何清除/禁用缓存?

windows-store-apps - 手动更改 package.appxmanifest 而不是将 UWP 应用程序与商店关联

Windows phone - 你已经安装了最大数量的开发应用程序

windows-8 - Windows 应用程序认证套件 - "did not detect any new application",ClickOnce

c++ - 使用 WRL 实例化 SpatialSurfaceObserver

c# - 有效处理设置

c# - UWP ListView 数据模板绑定(bind)

windows-store-apps - 从服务器收到的身份验证 header 为 'NTLM,Negotiate' 。在 Windows 应用商店中

c# - UWP 应用程序无法启动

microsoft-metro - 监听 ListView 上的点击事件