IAP消费品收据验证 [英] IAP Receipt Validation for Consumable Products

查看:129
本文介绍了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?

推荐答案

参考:应用内购买编程指南

Refer: In-App Purchase Programming Guide https://developer.apple.com/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消费品收据验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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