I am currently implementing in app purchases for consumables. I have the code up and running, performing purchases and validating the receipt locally.
This is the pseudo code for what I am currently doing:
Make purchase request
Respond to paymentQueue updatedTransactions callback
If Transaction Success
Validate app receipt fields locally (hash, bundle id, version)
Validate in app purchase fields (product, qty, transactionid)
Check transaction has not been seen before
If Validation passes
Complete in app purchase and top up user
Since SKPaymentTransaction.transactionReceipt has been deprecated in iOS8 I am using the app receipt for verification. I am assuming that it is up to date with the latest consumable in app purchases when the updateTransactions callback is fired.
Is the app receipt allways refreshed before 'paymentQueue updatedTransactions' is called? Is there a chance that it won't be there or it will be stale?
I would hope that the latest receipt data is downloaded with the response. My testing indicates that this is the case but I can't find anything explicitly stating this in the documentation.