Probably a newbie question, I am using the Verify Store Receipts API to verify purchases of consumable items. How can I mark these items consumed so that the same receipt cannot be used again? Is there any option other than storing the used receipts?
Asked
Active
Viewed 306 times
2
-
Take a look at [MKStoreKit](http://blog.mugunthkumar.com/coding/mkstorekit-4-0-supporting-auto-renewable-subscriptions/). It's a couple classes you compile in and it handles all this for you. – progrmr Jan 03 '12 at 21:34
-
1Client side libraries are no good we assume hacked clients. We need to ensure non-repetitive use server side. – Usman Ismail Jan 03 '12 at 21:40
-
Why are you looking for options other than storing the used receipts? They're not enormous and it's a fairly obvious and simple solution. – Aidan Steele Jan 03 '12 at 21:49
-
We expect many purchases of the same item(s) and the total data would grow with each purchase. I wanted to know if there was a better way such as invalidating a receipt in Apple's records. – Usman Ismail Jan 03 '12 at 22:18
2 Answers
1
Perhaps you could use a backend service to track receipts. Parse has brilliantly simple SDKs for iOS and Android that make it easy to persist bits of data to a provided server.

Mark Adams
- 30,776
- 11
- 77
- 77
0
You could use iCloud (or normal UserDefaults) for that. However, you will probably prefer using your own servers.

Tom van der Woerdt
- 29,532
- 7
- 72
- 105
-
-
Not entirely sure, but I think that iCloud checks for that. – Tom van der Woerdt Jan 03 '12 at 21:50