Reputation: 157
Does anybody know how long in app purchase data live in transactionReceipt variable after making purhcase? How fast i need to send it to my php server to verify the receipt?
Upvotes: 1
Views: 476
Reputation: 5123
IAP don't have any expiration date, and I believe you don't really need to verify the receipt on the server.
If you want to go through the receipt validation on server then you need to store some information about user at the time of purchase. which can not be the UDID because of two reason.
1. UDID is deprecated.
2. it will not work if user wants to restore on second device.
What you can do is create a unique from the receipt you get from Apple.Each receipt has transaction id and date you can create key out of it to identify user across multiple devices.
Upvotes: 0
Reputation: 182827
It is, in principle, valid forever. Receipts don't expire in general, and in app purchase receipts specifically never expire.
Upvotes: 3