I'm having trouble validating my iOS receipts. I am using Unity IAP and passing the receipt string it gives me to Playfab, but it always results in the error result code
21002 | The data in the receipt-data property was malformed or missing. |
(that's from Apple's documentation, describing the failure code)
Things I have tried:
1.I made a bundle in playfab with the same name as the consumable IAP I made in itunesconnect. I also tried making a regular item with a matching name.
2. I enabled the "Apple" add-on in my project settings in the PlayFab manager. In the plugin page, I specified the bundle identifier for my game, as well as the shared secret.
3. I made sure my bundle in playfab has a purchase price specified.
4. I have an auto-renewable IAP as one of the things you can purchase. I am able to check if it has expired by using an AppleReceiptParser to see the products and check the expiration date. This makes me think my receipt string is totally valid and not malformed.
So... I'm not sure what to try now. As far as I can tell I am passing a legit receipt to playfab, but it fails every time. Please help!