iOS InApp购买收据验证iOS 7 [英] iOS InApp Purchase Receipt Validation iOS 7

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

问题描述

我现在已经阅读了几次Apple的文档,但我并没有真正理解它。所以我希望有人知道如何处理收据验证:

I've read Apple's documentaion a few times now and I didn't really get much smarter from it. So I hope somebody here knows how to deal with receipt validation:

我知道iOS 6之前存在问题但是现在iOS 7上是否需要Receipt Validation?它真的增加了额外的安全性吗?如果Apple更改收据的格式(在设备上解析它们),它似乎会导致问题。

I know there was a problem pre iOS 6. But is Receipt Validation needed nowadays on iOS 7? Does it really add extra security? It seems like it can cause problems if Apple changes the format of their receipts (parsing them on device).

推荐答案

在我的内容中已经看到,iOS7不会改变您是否进行收据验证的需要,只需 收据验证是否可行。 iOS7已在设备上启用收据验证(例如,请参阅 https://stackoverflow.com/users/1226963/rmaddy上面,并参见一个完整的解决方案,可以在iOS 7上验证应用程序内收据和捆绑收据)。

In what I've seen, iOS7 doesn't change the need for whether or not you should do receipt validation, just how receipt validation is possible. iOS7 has enabled receipt validation on the device (e.g., see link from https://stackoverflow.com/users/1226963/rmaddy above, and see A complete solution to LOCALLY validate an in-app receipts and bundle receipts on iOS 7).

设备上的收据验证是否会增加额外的安全性?在我看来它确实如此。它为您提供了一个工具来保护您的购买。在我的应用程序(尚未发布)中,我想支持iOS6和iOS7,所以我决定让后端服务器对iOS6案例进行收据验证。由于我已经安装了该服务器,对于iOS7收据,我首先进行设备验证,如果成功,我会进行服务器验证作为第二次检查。

Does on-device receipt validation add extra security? It seems to me that it does. It gives you one more tool with which to secure your purchases. In my app (yet to be released), I want to support iOS6 and iOS7 so I decided to have a back-end server to do receipt validation for the iOS6 case. And since I have that server in place, for iOS7 receipts, I do on-device validation first and if that succeeds, I do server validation as a second check.

是否或者你没有收据验证(在iOS5,iOS6,iOS7等),这取决于你的安全对你意味着多少。如果您没有太多的安全需求,那么为什么要花很多时间在安全上。如果你这样做,那就做更多。

Whether or not you do receipt validation (in iOS5, iOS6, iOS7 etc) really depends on how much your security means to you. If you don't have much in the way of security needs, then why spend much time on security. If you do, then do more.

如果Apple更改收据的格式怎么办?嗯,当然,这可能也可能会发生。鉴于iOS6到iOS7大大改变了重组收据和应用内购买,似乎我们应该期待iOS8再次这样做。那就是未来。处理我们现在拥有的东西。

What if Apple changes the format of the receipts? Well, of course, this can and likely will happen. Given that the iOS6 to iOS7 change restructured receipts and in-app purchases considerably, it seems we should expect iOS8 to do so again. That's the future. Deal with what we have now.

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

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