You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using this module to get the NSData representation of a IAP receipt and then sending it to my server which in turns sends it to Apple. The receipt is coming back as rejected by Apple due to malformed data. I noticed that when I get the NSData of a receipt using DHAppleReceiptParser then the length of the data is 346. When I get the NSData using self.transactionReceipt then the length is 2390. I would like to move away from using self.transactionReceipt since it is deprecated, however this module is not working. Any thoughts as to why DHAppleReceiptParser is returning the wrong length of receipt data, or why Apple is rejecting what it responds with?
I am having the same problem, it seems that the [inAppReceipt receiptData] is not supposed to be validated by Apple, you can only send the whole receipt data from the original file:
I am using this module to get the NSData representation of a IAP receipt and then sending it to my server which in turns sends it to Apple. The receipt is coming back as rejected by Apple due to malformed data. I noticed that when I get the NSData of a receipt using
DHAppleReceiptParser
then the length of the data is 346. When I get the NSData usingself.transactionReceipt
then the length is 2390. I would like to move away from usingself.transactionReceipt
since it is deprecated, however this module is not working. Any thoughts as to whyDHAppleReceiptParser
is returning the wrong length of receipt data, or why Apple is rejecting what it responds with?Here is my code using
DHAppleReceiptParser
:And the code which works using
self.transactionReceipt
:NSData *receiptData = self.transactionReceipt;
The text was updated successfully, but these errors were encountered: