IAP Receipt Validation for Consumable Products

♀尐吖头ヾ 提交于 2019-12-10 23:26:45

问题


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.) Does the below url will contain the most recent receipt or all the receipts (even the old ones)?

NSBundle.mainBundle().appStoreReceiptURL

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.) Does the user will have access to these receipts if he chooses to reinstall the application?


回答1:


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.



来源:https://stackoverflow.com/questions/36150723/iap-receipt-validation-for-consumable-products

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!