[C#] [UWP] [W10] - 从免费增值转为免费+在应用内购买 [英] [C#] [UWP] [W10] - Moving from Freemium to Free + In app purchases

查看:84
本文介绍了[C#] [UWP] [W10] - 从免费增值转为免费+在应用内购买的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近将我的W10应用程序移至Free + IAP而不是Freemium模型,我遇到了一些问题。



我跟着
本指南
,似乎与
关于CurrentApp.GetAppReceiptAsync的MSDN文档
,但在实际请求收据时,我看到
LicenseType 的不同值领域。



该示例正在寻找 / Receipt / AppReceipt [@ LicenseType ='Full'] / @ PurchaseDate 并且文档显示了可能的值:
LicenseType:Full ,如果用户购买了应用程序的完整版本。
试用,如果用户下载了该应用的试用版。


从发送给我应用收据的各个用户(在我的应用程序的WinStore缓存文件夹),我看到 试用
LicenseType
购买 。现在可以假设 购买
完整 对齐,但我仍然看到 <对于声称在免费增值模式中购买应用的用户,请选择试用


以下是我的一些示例我看到了(所有用户声称在免费增值时购买了应用程序):

< AppReceipt Id =" [redacted]" ;的AppId = QUOT; 34508TravisLiew.Unstream_1ty85bq3gvwct"授权类型= QUOT;试验"而purchaseDate = QUOT; 2015-12-14T19:37:05.692Z" /> 
< AppReceipt Id =" [redacted]"的AppId = QUOT; 34508TravisLiew.Unstream_1ty85bq3gvwct"授权类型= QUOT;试验"而purchaseDate = QUOT; 2015-12-01T20:39:30.491Z" />
< AppReceipt Id =" [redacted]"的AppId = QUOT; 34508TravisLiew.Unstream_1ty85bq3gvwct"授权类型= QUOT;试验"而purchaseDate = QUOT; 2015-10-23T17:03:49.486Z" />
< AppReceipt Id =" [redacted]"的AppId = QUOT; 34508TravisLiew.Unstream_1ty85bq3gvwct"授权类型= QUOT;购买"而purchaseDate = QUOT; 2016-01-02T23:15:18.678Z" />



这是我自己的:



< AppReceipt Id =" [redacted]"的AppId = QUOT; 34508TravisLiew.Unstream_1ty85bq3gvwct"授权类型= QUOT;购买"而purchaseDate = QUOT; 2015-01-12T12:28:51.695Z" /> 



2015-01-12T12:28:51.695Z 是我创建应用的时候。



任何人都有这方面的经验吗?



任何帮助都将不胜感激,谢谢。




Travy92

解决方案

Hello Travis Lew,


1。目前我无法在我的机器上重现此问题,但您可以在机器中使用CurrentAppSimulator进行测试吗?


请参阅:  https://github.com/Microsoft/Windows-universal-samples/blob/master/Samples/Store/cs/Scenario8_Receipt.xaml.cs


您可以在此处查看官方UWP示例。
https://github.com/Microsoft/Windows-universal-samples/ tree / master / Samples / Store


如果问题仍然存在,则可能是与商店相关的问题我建议您为此创建支持服务单。


1。)转到 http://aka.ms/storesupport (使用您的MSDN订阅登录(如果适用)


2。)在"应用程序开发"下单击"Windows 10 Universal app development"或"Windows 8.x app development"链接,根据他们遇到问题的位置。


3。)在下一页上,选择问题type =支持编写应用,类别=<<适当的类别>>


4。)然后选择"开始请求"。链接以启动支持请求。


如果支持事件费用是由Microsoft错误引起的,则会退款。


有问候,


Krunal Parekh



Recently moved my W10 app to Free + IAP instead of Freemium model and am having a few issues.

I followed this guide, which seems to align with the MSDN documentation on CurrentApp.GetAppReceiptAsync, however when actually requesting the receipt I am seeing different values for the LicenseType field.

The example is looking for /Receipt/AppReceipt[@LicenseType='Full']/@PurchaseDate and the documentation shows possible values: LicenseType: Full, if the user purchased the full version of the app. Trial, if the user downloaded a trial version of the app.

From various users sending me their app receipts (generated in the WinStore cache folders for my app), I'm seeing LicenseType values of Trial and Purchase. Now one can assume that Purchase aligns with Full, but I still see Trial for users who claim to have bought the app when it was in the freemium model.

Here are some examples I'm seeing (all users claim to have bought the app when freemium):

<AppReceipt Id="[redacted]" AppId="34508TravisLiew.Unstream_1ty85bq3gvwct" LicenseType="Trial" PurchaseDate="2015-12-14T19:37:05.692Z" />
<AppReceipt Id="[redacted]" AppId="34508TravisLiew.Unstream_1ty85bq3gvwct" LicenseType="Trial" PurchaseDate="2015-12-01T20:39:30.491Z" />
<AppReceipt Id="[redacted]" AppId="34508TravisLiew.Unstream_1ty85bq3gvwct" LicenseType="Trial" PurchaseDate="2015-10-23T17:03:49.486Z" />
<AppReceipt Id="[redacted]" AppId="34508TravisLiew.Unstream_1ty85bq3gvwct" LicenseType="Purchase" PurchaseDate="2016-01-02T23:15:18.678Z" />


And here is my own:

<AppReceipt Id="[redacted]" AppId="34508TravisLiew.Unstream_1ty85bq3gvwct" LicenseType="Purchase" PurchaseDate="2015-01-12T12:28:51.695Z" />


2015-01-12T12:28:51.695Z is when I created the app.

Anyone have experience doing something like this?

Any help would be appreciated, thanks.


Travy92

解决方案

Hello Travis Lew,

1. Currently I am not able to reproduce this issue on my machine but could you test this using CurrentAppSimulator in your machine?

Please see: https://github.com/Microsoft/Windows-universal-samples/blob/master/Samples/Store/cs/Scenario8_Receipt.xaml.cs

You can see the official UWP sample here. https://github.com/Microsoft/Windows-universal-samples/tree/master/Samples/Store

If the issue still persist it could be store related issue I would recommend that you create a support ticket for this.

1.) Go to http://aka.ms/storesupport (sign in using your MSDN Subscription if applicable)

2.) Under "App development" click the "Windows 10 Universal app development" OR "Windows 8.x app development" link based on where they are experiencing the problem.

3.) On the next page, choose Problem type = Support for Writing apps, Category = <<appropriate category>>

4.) Then choose the "Start request" link to start a support request.

Support incident charges will be refunded if they are caused by a Microsoft bug.

With Regards,

Krunal Parekh


这篇关于[C#] [UWP] [W10] - 从免费增值转为免费+在应用内购买的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆