Is the transactionReceipt data present in dataWithContentsOfURL?

451 views Asked by At

I do IAP receipt verification on server-side. For this I send SKPaymentTransaction' transactionReceipt.

Now that transactionReceipt is deprecated, I tried to use:

[[NSBundle mainBundle] appStoreReceiptURL]

But this is not the same data (so verification of course fails). It's actually about twice as big, so I thought it could embed the transactionReceipt data.

I downloaded Maddy's VerifyStoreReceiptiOS, but the code does not supply me the old receipt.

Before I spend much more time on this: Does the appStoreReceiptURL's data indeed include the good ol' transactionReceipt? (And if yes, how can I get it out?)

1

There are 1 answers

8
Sega-Zero On BEST ANSWER

In ios7 and later the receipt file contains all the transactions that were performed on this apple id for this app on that device. Apple covers local validation process and the receipt format as well. So yes, you can get a particular transactions info from this file. WWDC 2104, is very helpful on understanding the new receipt format.