question

Alberto Gomez avatar image
Alberto Gomez asked

Couldn't validate iOS reciept

I'm having trouble validating most of the iOS purchases been made. After debugging I see that users get this PlayFabError:

iTunes validation result: 0 (Success) from https://buy.itunes.apple.com/verifyReceipt

As you can see the result says "Success" so I don't know why this is marked as an error...

Sometimes they get this message from the PlayFabError:

iTunes validation result: 21002 (InvalidReceiptData) from https://buy.itunes.apple.com/verifyReceipt

That seems more likely to ve an invalid reciept.

Could you please tell me if this is playfab bug?

Thank you,
Alberto

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
brendan avatar image
brendan answered

In the error response you're getting back, the key element is the error:ReceiptDoesNotContainInAppItems. If you check the receipts that are passing the iTunes verifyReceipt call, but failing to be processed successfully, you'll see that they don't contain any in-app purchases - the in_app array is empty. Do you know what these purchases are for, exactly?

2 comments
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

kieran-d avatar image kieran-d commented ·

Hi @Brendan ,

If you delete a product and you validate a receipt. Would you get the ReceiptDoesNotContainInAppItems error?

0 Likes 0 ·
brendan avatar image brendan kieran-d commented ·

If the receipt contains Product IDs that don't have associated Items IDs in your catalog, you will get this error.

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.