question

xigmasuji avatar image
xigmasuji asked

error: "GetInAppPurchasesFailure" for "redeemAppleAppStoreinventoryItems" API

I am trying to make IAP in unity using redeemAppleAppStoreinventoryItems for validation of receipt after following integration https://learn.microsoft.com/en-us/gaming/playfab/features/economy-v2/tutorials/marketplace-integrations/google and also the validation https://learn.microsoft.com/en-us/gaming/playfab/features/economy-v2/tutorials/marketplace-redemption/google

I am getting the "errorMessage": "Marketplace returned HTTP status code 'GetInAppPurchasesFailure'

the app store is also set up with correct product ID and mapped in the playfab bundle

after using the IAP of unity the receipt is recieved is receipt : {"Payload":"ThisIsFakeReceiptData","Store":"fake","TransactionID":"825ccd33-f7a8-4188-9af7-32ab9a0f8167"}

also the unity is switched to IOS platform there are very few post for Apple store validation so i couldn't figure it out. any solution?

appleIn-Game Economy
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

·
Xiao Zha avatar image
Xiao Zha answered

Since RedeemAppleAppStoreInventoryItems uses the validation process explained: Validating receipts with the App Store | Apple Developer Documentation, please make sure that you obtain the receipt in the same way when calling the API. Also, you may follow this tutorial: Marketplace Integration - Apple - PlayFab | Microsoft Learn to integrate an Apple App Store application into your Title in Game Manager.

10 |1200

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

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.