I am trying to verifying that an auto-renewable In App purchase has not expired server side (not on a device).
I am using Apple's Grand Unified Receipt (iOS 7 style transactions). The response returned by Apple contains in_app and latest_receipt_info elements with an array of receipts. The in_app JSON element contains LESS receipts than latest_receipt_info. I was expecting both elements to contain the same number or receipts.
Also, I was expecting that the in_app element would contain ALL the receipts. However, it appears that latest_receipt_info actually contains all the receipts. Apple documentation seems to suggest to use in_app for finding a latest receipt.
I am surprised to see the latest_receipt_info because Apple's Documentation state that this element is
"Only returned for iOS 6 style transaction receipts for auto-renewable subscriptions." (not iOS 7+).
Which JSON element should I iterate to find the latest receipt for auto-renewable iOS 7 style transactions: in_app or latest_receipt_info?