youknowone / itunes-iap

Apple iTunes In-app purchase verification tool
http://itunes-iap.readthedocs.io
Other
136 stars 50 forks source link

get latest in app purchase transaction #12

Closed miukal closed 9 years ago

miukal commented 9 years ago

You will get a list from receipt 'in_app' key. If there is any unfinished transaction, the length of this list may be > 1. If so, the first item in list is the oldest transaction, the last item is the latest transaction. So I change slice from 0 to -1 to get the latest transaction info, not the oldest.

youknowone commented 9 years ago

Mmm, I didn't use this project for a few years, but now it sounds very unsafe to use in_app in that way - just overriding the global space.