Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Handle app receipt expirations properly #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

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