iPhone 应用内购买的安全性
我在我的应用程序中使用了应用内购买。我通过应用内购买购买书籍。成功付款后,我正在从我的服务器下载书籍。但我正在考虑安全问题。因为如果任何用户跟踪我的服务器的 URL 并下载书籍并无需任何付款即可使用。那么有人可以建议我如何为此启用安全性吗?
请建议 谢谢
I used in-app-purchase in my application. i am purchasing books from in-app-purchase. after successfully payment i am downloading books from my server. but i am thinking about the security. because if any user track the url of my server and download book and used without any payment. so can any one suggest how i enable security for this.
plz suggest
thx
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
应用内购买交易包含来自 Apple 的收据。苹果还有一项服务可以验证该收据。因此,您的 iPhone 应用程序应在请求下载时将收据传递到您的服务器。然后,服务器可以在发送内容之前验证收据。
请参阅 http://developer.apple.com/library/ios/#documentation/NetworkingInternet/Conceptual/StoreKitGuide/VerifyingStoreReceipts/VerifyingStoreReceipts.html#//apple_ref/doc/uid/TP40008267-CH104-SW1
The in-app purchase transaction contains a receipt from Apple. Apple also has a service that will verify that receipt. So your iPhone app should pass the receipt to your server when requesting the download. The server can then verify the receipt before sending the content.
See http://developer.apple.com/library/ios/#documentation/NetworkingInternet/Conceptual/StoreKitGuide/VerifyingStoreReceipts/VerifyingStoreReceipts.html#//apple_ref/doc/uid/TP40008267-CH104-SW1