如何管理 Microsoft Store 外的应用内购买?

How to manage in-app purchases outside of the Microsoft Store?

这些问题与 Microsoft Store 相关 API、C# 和 VS2022。

Q1.Can 我在 Microsoft Store 之外管理应用内购买,这意味着使用我自己的支付网关,例如 stripe.com?如果是,是否有相同的示例或文章。

Q2。我可以为每个客户实施自定义价格的应用内购买吗?对于少数客户,我们可能希望提供一些不同的折扣。有任何示例或文章吗?

此致

Can I manage in-app purchases outside of the Microsoft Store, meaning using my own payment-gateway like stripe.com ?

是的,根据 Store policy 10.8 Financial Transactions,在 PC 设备上提供的非游戏应用内产品 可以使用安全的第三方购买 API 或 Microsoft存储产品内购买 API 用于在产品内消费或使用的数字项目或服务的应用内购买。

if yes are there any sample example or article on the same.

没有,没有使用第三方购买的示例API。您需要查看这些第三方购买的文件 APIs.

Can I implement in-app purchases with a custom price for each customer? for few customers we might want to give some varying discount. any sample example or article on the same?

如果您使用的是第三方购买APIs,那么这将是一个问题,您需要查看第三方购买API文档。

对于 Microsoft Store 产品内购买 API,没有为每个客户提供自定义价格的功能。你可以做的是在 Microsoft Store 中以不同的价格提供不同的附加组件。然后针对不同的客户,你展示不同的插件。