iOS应用内购买可验证消耗品的收据

编程入门 行业动态 更新时间:2024-10-09 16:23:13
本文介绍了iOS应用内购买可验证消耗品的收据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

在带有应用程序内购买的iOS中,有必要验证带有订阅的收据.是否还需要验证消耗品的收据?

in iOS with in-app purchases, it is necessary to verify receipts with subscriptions. is it necessary to verify receipts for consumables also?

推荐答案

必要,不需要.推荐,是的.

Necessary, no. Recommended, yes.

所有购买;消耗品,非消耗品和订阅易受欺诈性攻击.通常是通过漏洞攻击者或网络欺骗来实现的.验证收据可以缓解此问题.

All purchases; consumables, un-consumables and subscriptions are susceptible to fraudulent attacks. Often though iap crackers or network spoofing. Validating the receipt can mitigate this problem.

您可以在应用程序本地验证收据(请参见对收据进行本地验证),尽管它仍然易于破解.

You can validate the receipt locally in the app (see Validating Receipts Locally), though it is still susceptible to cracking.

防止欺诈的最安全方法是通过将收据发送到您的服务器然后将其发送到Apple来执行服务器端验证(请参阅通过App Store验证收据).

The safest way to prevent fraud is to perform server-side validation by sending the receipt to your server then sending it on to Apple (see Validating Receipts With the App Store).

但是,请勿在应用本身中的应用商店中验证收据.欺骗网络请求并返回肯定的(有效的)结果真的很容易.

However, do not validate the receipt with the app store in the app itself. It's really easy to spoof the network request and return a positive (valid) result.

如果您发现从Apple报告中的实际购买与应用程序内购买分析之间存在很大差异(假设您已拥有),则可能要投资于服务器端验证,否则,如果不是问题, ,不用担心.

If you notice a large discrepancy between the actual purchases in your reports from Apple and your in-app purchase analytics (assuming you have that), you may want to invest in server-side validation, otherwise, if it's not a problem, don't worry about it.

更多推荐

iOS应用内购买可验证消耗品的收据

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

发布评论

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

>www.elefans.com

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