iOS 7 receipt validation

We are finally getting around to moving from pre-iOS 7 receipt validation to the 'new' iOS 7 receipt format validation. I know, it's not new anymore.


With iOS 7 receipts it looks like I get back an entire history of receipt data. Here are some questions:


- Is there a way to quickly find the latest purchase?


- Is there a way to only send the receipt data for the latest purchase to Apple's servers for validation? Or do we have to send the entire bundle? Currently we have a model where we send a single purchase to our backend servers to validate with Apple and open up, so if we dont have that option anymore then my backend team will need to do more work to break down the bundle of receipts and figure out what's still valid inside.


- Does the appStoreReceiptURL method return cancelled or expired purchases or subscriptions that are no longer valid? In other words, do I need to weed through old purchases that are no longer active for my auto-renewing subscriptions business?


Thanks!

Gary

Answered by PBK in 85663022

You asked:

- Is there a way to quickly find the latest purchase?

No, you need to parse them all looking for the latest purchase_date. (I am pretty sure that "expires_date" applies to that particular period's receipt - i.e. October 31 for the October 1 purchase.)


- Is there a way to only send the receipt data for the latest purchase to Apple's servers for validation?

No.


- Does the appStoreReceiptURL method return cancelled or expired purchases or subscriptions that are no longer valid?

Yes.

Accepted Answer

You asked:

- Is there a way to quickly find the latest purchase?

No, you need to parse them all looking for the latest purchase_date. (I am pretty sure that "expires_date" applies to that particular period's receipt - i.e. October 31 for the October 1 purchase.)


- Is there a way to only send the receipt data for the latest purchase to Apple's servers for validation?

No.


- Does the appStoreReceiptURL method return cancelled or expired purchases or subscriptions that are no longer valid?

Yes.

iOS 7 receipt validation
 
 
Q