[UWP] Windows.Service.Store.StoreContext获取收据 [英] [UWP] Windows.Service.Store.StoreContext get receipt

查看:118
本文介绍了[UWP] Windows.Service.Store.StoreContext获取收据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨!

在AU更新后,我们可以开始使用新的商店API - >带有新功能的`Windows.Service.Store.StoreContext`。 

但是使用新API我购买后无法收到产品:( 

我可以使用新商店API吗?支持旧API需要多长时间?或者我如何在新API中收到产品?
b
$ b问候,Nikita。




解决方案

你好Nikita,


>>但是使用新API我购买后无法收到产品


在Windows.Services.Store.StoreContext的新API中,它不支持使用此
CurrentApp.GetAppReceiptAsync
方法。


>>我可以使用旧商店API有新增功能吗?支持旧API需要多长时间?


我们不能使用旧的st使用新的原料API。目前旧商店API支持所有Windows 10版本,我不会获得有关旧商店IAP不再支持的此类信息。


> ;>或者我如何在新API中收到产品?


我们无法在新API中获得收据,但如果您想检查商品是否已购买,我们可以进行许可检查。

此外,开发人员还可以使用
查询
方法/msdn.microsoft.com/en-us/windows/uwp/monetize/view-and-grant-products-from-a-service">
Windows应用商店购买REST API 以确认是否给定用户拥有给定产品的权利。使用REST API直接查询我们的服务以获取此信息比通过客户的
设备上运行的代码调用客户端API更安全。



如果您对新商店API有任何其他反馈或建议,欢迎将其发布在此uservoice网站:

https://wpdev.uservoice.com/forums/110705-universal-windows-platform 功能。

Hi!
After AU update we can start to use new store API -> `Windows.Service.Store.StoreContext` with new features. 
But with new API I can't get receipt of the product after purchase :( 
Can I use old store API with new? How long will support old API? Or how I can get receipt of the product in new API?

Regards, Nikita.


解决方案

Hi Nikita,

>>But with new API I can't get receipt of the product after purchase

In the new API of the Windows.Services.Store.StoreContext it doesn’t support the ability to retrieve receipts like the Windows.ApplicationModel.Store.CurrentApp API does by using this CurrentApp.GetAppReceiptAsync method.

>>Can I use old store API with new? How long will support old API?

We can not use the old store API with the new one. Currently the old store API supports all the Windows 10 version and I do not get such information about the old store IAP will do not support by Microsoft any more.

>>Or how I can get receipt of the product in new API?

We can not get receipt in the new API, but if you want to check if the item was purchased or not, we can do the licensing check.

Besides, developers can also use the query method in the Windows Store purchase REST API to confirm whether a given user has an entitlement for a given product. Using the REST API to query our services directly for this information is more secure than calling a client API through code running on the customer’s device.

If you have any others feedback or suggestion about the new store API, welcome to post it in this uservoice website:
https://wpdev.uservoice.com/forums/110705-universal-windows-platform .


这篇关于[UWP] Windows.Service.Store.StoreContext获取收据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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