question

yjkim avatar image
yjkim asked

RedeemGooglePlayInventoryItemsAsync Error: GetInAppPurchasesFailure, BadRequest, Unknown error

Hello. We are implementing Redeem through Google Play, but no matter what we do, we can't solve the following error occurring on Android devices.

11:57:45 - Validation Failed: Marketplace returned HTTP status code 'GetInAppPurchasesFailure', error code 'BadRequest', and error message 'Unknown error' (This error is shown on my Samsung Phone and I typed this text. There can be some typos)

Currently, our App perfectly operates Redeem on both iOS and Steam, and also, Redeem through Google Play's Legacy API works perfectly. Therefore, we don't think it's a Service Account Key issue. We have checked all settings more than ten times.

Through the Google Cloud Console, it seems that Redeem calls are not being made through Service Account on Playfab, as there are no logs related to Redeem in the logs of the Service Account we set up.

We ask for your help in resolving this issue, as the release of our next game is imminent.

android
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

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

The most likely case is the Service Account Key. The legacy API uses a different key than the V2 API. Please follow the documentation here to get a key correctly.

https://learn.microsoft.com/en-us/gaming/playfab/features/economy-v2/tutorials/marketplace-integrations/google

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.