IAP消费品收据验证

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

我已在我的应用程序中实施了针对消费品的IAP.我有几个有关验证收据的疑问.我将使用自己的服务器,该服务器将与Apple服务器通信.

I have implemented the IAP for Consumable Products in my app. I have couple of queries regarding validating the receipt. I am going to use my own server which will communicate with apple server.

1.)下面的URL是否包含最新收据或所有收据(甚至旧收据)?

1.) Does the below url will contain the most recent receipt or all the receipts (even the old ones)?

NSBundle.mainBundle().appStoreReceiptURL

NSBundle.mainBundle().appStoreReceiptURL

2.)如果上面的url存储了所有收据,那么当用户购买新产品时,我是否需要验证所有收据?

2.) If the above url stores all the receipts then do i need to verify all the receipts whenever user purchase a new product?

3.)如果用户选择重新安装该应用程序,是否可以访问这些收据?

3.) Does the user will have access to these receipts if he chooses to reinstall the application?

推荐答案

参考:应用内购买编程指南 developer.apple/library/ios/documentation/NetworkingInternet/Conceptual/StoreKitGuide/Chapters/DeliverProduct.html#//apple_ref/doc/uid/TP40008267-CH5-SW16

Refer: In-App Purchase Programming Guide developer.apple/library/ios/documentation/NetworkingInternet/Conceptual/StoreKitGuide/Chapters/DeliverProduct.html#//apple_ref/doc/uid/TP40008267-CH5-SW16

有关易耗品和非续订订阅的信息 付款时已添加到收据中,并保留在 收据,直到您完成交易为止.完成后 交易时,下次收到收据时将删除此信息 已更新-例如,下一次用户购物.

Information about consumable products and non-renewing subscriptions is added to the receipt when they’re paid for and remains in the receipt until you finish the transaction. After you finish the transaction, this information is removed the next time the receipt is updated—for example, the next time the user makes a purchase.

有关所有其他类型购买的信息会添加到收据中 付款并无限期保留在收据中.

Information about all other kinds of purchases is added to the receipt when they’re paid for and remains in the receipt indefinitely.

更多推荐

IAP消费品收据验证

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

发布评论

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

>www.elefans.com

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