Skip to content

Conversation

@megastep
Copy link

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.

- Convert date strings to NSDate objects where possible.
- Ignore empty fields altogether.
- Check if the app receipt is past an expiration date in validation.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants