-
Notifications
You must be signed in to change notification settings - Fork 92
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
Not sure sorting by transaction_id
works with family sharing
#90
Comments
I have same problem too. |
Years ago, I maintained this project, but I've since moved on. I'm getting the impression this project is no longer maintained and you may be better off using an alternative. |
@ronkorving do you have any recommendations? I'm currently in the process of refactoring a project where this is used for iap verification, but have yet to look for an alternative. |
I'm sorry to say I do not. I hardly use Node.js these days. |
@ronkorving |
Noticed that a iOS user who was having receipt validation issues had two items in the latest receipt info array:
Our tactic of grabbing the last item in the array failed, because
iap
sorts the items before returning them:node-iap/lib/apple/index.js
Line 76 in 4ac0e22
However the sorting is via
transaction_id
and in this case the first transaction has a much larger id than the second. Not sure if related to family sharing, or a red herring.Perhaps don't sort the array when parsing?
The text was updated successfully, but these errors were encountered: