VerifyStoreReceiptiOS icon indicating copy to clipboard operation
VerifyStoreReceiptiOS copied to clipboard

Handle app receipt expirations properly

Open megastep opened this issue 12 years ago • 0 comments

In my own testing based on this code, I noticed that the Expiration Date field in the app receipt was not being handled at all. This is required if you want to check whether the app receipt has expired (mostly in the context of a Volume Purchase Program).

This pull request fixes this and cleans up a few more things :

  • Parses the date strings and turns them to NSDate objects that are easier to access in code.
  • Ignores empty fields.
  • The verification function now looks for the presence of an expiration date in the past.

megastep avatar Nov 21 '13 09:11 megastep