[英]Microsoft Store API : Cannot create promo code for addon type 'Subscription'
I want to simulate purchase for a subscription addon.我想模拟订阅插件的购买。 Its a free addon but still purchase process flow force asks me to enter Creditcard or paypal details.
它是一个免费插件,但仍然购买流程强制要求我输入信用卡或 paypal 详细信息。 (was not expecting this)
(没想到这个)
I read here that one can create promo code to test the purchase process without feeding money.我在这里读到,可以创建促销代码来测试购买过程,而无需付钱。 The promocode generation page displays all addons except of type 'Subscription'.
促销代码生成页面显示除“订阅”类型之外的所有插件。
Q1. Q1。 So question is how to i generate promocodes for a subscription type of addon?
所以问题是如何为订阅类型的插件生成促销代码?
There is next question in pipeline related to same.管道中有下一个问题与此相关。 I created promocode for a consumable addon now how do i use it?
我现在为消耗品插件创建了促销代码,我该如何使用它? There is only option gift card and when i paste promocode it show error as attached in screenshot.
只有选项礼品卡,当我粘贴促销代码时,它显示错误,如屏幕截图中所附。
So Q2.所以Q2。 Even if i successfully create promocode, how and where i can use it during purchase flow.
即使我成功创建了促销代码,我也可以在购买流程中如何以及在何处使用它。 ?
?
It is not possible to generate promotional codes for subscription add-ons.无法为订阅附加组件生成促销代码。 This is mentioned on the document - Generate promotional codes : You can generate promotional codes for any app or add-on ( with the exception of subscription add-ons ) that you published to the Microsoft Store.
文档中提到了这一点 - 生成促销代码:您可以为发布到 Microsoft Store 的任何应用或加载项(订阅加载项除外)生成促销代码。
So you can't use such a way to test the purchase subscription.所以你不能用这样的方式来测试购买订阅。
A possible way for testing purposes is that you could create a test subscription add-on that is free to purchase.用于测试目的的一种可能方法是您可以创建一个可免费购买的测试订阅附加组件。 Then you could purchase it to check the purchase process.
然后你可以购买它来检查购买过程。 After you go through the whole purchase process and make sure everything is correct, you could do the same to the real subscription add-on.
在您 go 通过整个购买过程并确保一切正确之后,您可以对真正的订阅附加组件执行相同的操作。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.