question

goldnluck23 avatar image
goldnluck23 asked

Unity with Google Play - RedeemGooglePlayInventoryItems - GetInAppPurchasesFailure,Unity, Google PlayStore and PlayFab - error "GetInAppPurchasesFailure"

Hi, i'm developing a game using Unity and trying to set up IAP with Google Play. I was following the documentation steps:

  1. https://learn.microsoft.com/es-mx/gaming/playfab/features/economy-v2/quickstart?tabs=secret-key-api%2Ccatalog-settings-game-manager%2Cpublish-item-game-manager%2Csearch-game-manager%2Cvirtual-currency-game-manager%2Cgrant-currency-game-manager%2Ccreate-catalog-item-game-manager

  2. https://learn.microsoft.com/es-mx/gaming/playfab/features/economy-v2/tutorials/getting-started-with-unity-and-android?tabs=create-currency-gm%2Ccreate-items-gm

  3. https://learn.microsoft.com/es-mx/gaming/playfab/features/economy-v2/tutorials/marketplace-integrations/google

  4. https://learn.microsoft.com/es-mx/gaming/playfab/features/economy-v2/tutorials/marketplace-redemption/google

  5. https://docs.unity3d.com/Packages/com.unity.purchasing@4.7/manual/UnityIAPValidatingReceipts.html

I have the project configured as I show in these images uploaded to Google Drive: https://drive.google.com/drive/folders/1ZB-2kwwHeVJzDCQN739h5nU7UDblbdCr?usp=sharing

I don't know what could be wrong and this forum won't let me upload images. Thank you

unity3dIn-Game Economy
1 comment
10 |1200

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

Xiao Zha avatar image Xiao Zha commented ·

You might try reinstalling Google Addon, refilling and double-checking the keys (such as the service account key), and then calling the RedeemGooglePlayInventoryItems API with a new receipt Token to see if the problem persists.

0 Likes 0 ·

1 Answer

·
kylemc@microsoft.com avatar image
kylemc@microsoft.com answered

We're seeing this failure on the backend. Can you follow the instructions listed here?

GetInAppPurchasesFailure: Failed to get purchases from GooglePlay Reason:Google.Apis.Requests.RequestError Google Play Android Developer API has not been used in project 7726... before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/androidpublisher.googleapis.com/overview?project=7726... then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry. [403]

1 comment
10 |1200

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

goldnluck23 avatar image goldnluck23 commented ·

Thank you very much, the problem was resolved. Is this step in some documentation that I have missed? If not, it would be nice to add it :)

1 Like 1 ·

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.