Skip to content
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

Use receipt["latest_receipt_info"] when verifying subscriptions #134

Merged
merged 2 commits into from Feb 5, 2017

Conversation

bizz84
Copy link
Owner

@bizz84 bizz84 commented Feb 5, 2017

Reference page:

https://developer.apple.com/library/content/releasenotes/General/ValidateAppStoreReceipt/Chapters/ValidateRemotely.html

Quoting:

latest_receipt_info: Only returned for iOS 6 style transaction receipts for auto-renewable subscriptions. The JSON representation of the receipt for the most recent renewal.

The values of the latest_receipt and latest_receipt_info keys are useful when checking whether an auto-renewable subscription is currently active. By providing any transaction receipt for the subscription and checking these values, you can get information about the currently-active subscription period. If the receipt being validated is for the latest renewal, the value for latest_receipt is the same as receipt-data (in the request) and the value for latest_receipt_info is the same as receipt.

@bizz84
Copy link
Owner Author

bizz84 commented Feb 5, 2017

Should fix this related issue: #129

@bizz84 bizz84 merged commit 0617f74 into master Feb 5, 2017
@bizz84 bizz84 deleted the feature/verify-subscription-use-latest_receipt_info branch February 22, 2017 22:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant