收据验证

编程入门 行业动态 更新时间:2024-10-10 02:18:12
本文介绍了收据验证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

您好,

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

鉴于此处提出的观点:

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

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

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

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

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

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

解决方案

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

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:

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

msdn.microsoft/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.

更多推荐

收据验证

本文发布于:2023-11-26 09:08:38,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1633498.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:收据

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!