收据验证 [英] Receipt validation

查看:100
本文介绍了收据验证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,


我即将向商店提交一个由C#可执行文件组成的应用程序  C ++ / CX WinRT组件。该应用程序将只有一个价格,只需要通过Windows应用商店购买一次(即没有应用程序内购买),并且可以下载
作为全功能的14天试用版。


鉴于此处提出的观点:


http://social.msdn.microsoft.com/Forums/windowsapps/en-US/b3af8d38-3ecd -4cd8-b23e-7793c1d27430 / protect-your-windows-store-app-from-unauthorized-use?forum = winappswithcsharp


http://msdn.microsoft.com/en-us/library/windows/apps/jj649137.aspx


当我在应用内部检测到试用期已过期时,我正在考虑进行一些有限的收据验证。


我没有设置为完整收据验证,因为我目前没有设置服务器来执行此操作。我想在短期内做的只是检查收据是否存在,并将该事实用作测试该程序已被购买。
这是否合理?从某种意义上来说:简单地检查试用期限是否有所改进?


如果没有收到任何收据(检查将在C ++组件中完成),我将采取行动我想是以静默方式终止程序,这是桌面应用程序中的标准做法,因为它提供了关于在哪里查看退出点
的线索,但在Windows应用商店应用中是否可以接受?它应该只在程序被错误使用时发生。


我很抱歉这些可能不是黑白答案的问题,我只是在寻求一些建议/指导。




解决方案

< blockquote>这是一个你需要努力的实现细节。 我个人会提供一个弹出窗口,说明为什么应用程序在终止前被关闭。


Hello,

I'm about to submit an app to the store consisting of a C# executable and  C++/CX WinRT component. The app will have a single price and will require only a single purchase via the Windows Store (i.e. no in-app purchases) and will be downloadable as a fully functional 14-day trial.

Given the points raised here:

http://social.msdn.microsoft.com/Forums/windowsapps/en-US/b3af8d38-3ecd-4cd8-b23e-7793c1d27430/protecting-your-windows-store-app-from-unauthorized-use?forum=winappswithcsharp

http://msdn.microsoft.com/en-us/library/windows/apps/jj649137.aspx

I'm thinking about doing some limited receipt validation when I detect inside the app that the trial has expired.

I'm not set up to do full receipt validation since I don't at the moment have a server set up to do this. What I was thinking of doing in the short term was simply to check that a receipt exists, and use that fact as a test that the program has been purchased. Is this a reasonable thing to do? In the sense: is it an improvement on simply checking trial expiry?

In terms of action to take if no receipt is found (the checking would be done in the C++ component), my first thought is to terminate the program silently, This is standard practice in desktop apps since it gives less of a clue about where to look for the exit point, but is it acceptable practice in a Windows Store app? It should only ever happen when the program is being incorrectly used.

My apologies that these may not be questions with black and white answers, I'm simply seeking some advice/guidance.

解决方案

It is an implementation detail that you need to struggle with.  I would personally provide a popup saying why the app is being brought down before terminating.


这篇关于收据验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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