is this code from iOS 6 (SKPaymentTransaction)
transaction.transactionReceipt.bytes
completely equivalent to this from iOS 7?
[NSData dataWithContentsOfURL:[[NSBundle mainBundle] appStoreReceiptURL]]
in terms of content?
thanks
is this code from iOS 6 (SKPaymentTransaction)
transaction.transactionReceipt.bytes
completely equivalent to this from iOS 7?
[NSData dataWithContentsOfURL:[[NSBundle mainBundle] appStoreReceiptURL]]
in terms of content?
thanks
iOS6 and iOS7 receipts are different. Apple changed the receipt format when going to iOS7 in an effort to improve security. Take a look at: Can Purely On-Device In-App Purchase Receipt Validation Be Done With iOS6? and iOS7 - receipts not validating at sandbox - error 21002 (java.lang.IllegalArgumentException).
If you are talking about using these two methods on iOS7, in my tests, both return iOS7 style receipts. I'm not sure if the receipts are byte by byte identical, however.
Note that transactionReceipt is deprecated in iOS7.