question

zhangjako avatar image
zhangjako asked

Can "Validate Google Play Purchase" api return the environment of the receipt?

I want to know if a receipt is in test environment or not, and i can't found any info about it in the response in the api:

https://docs.microsoft.com/en-us/rest/api/playfab/client/platform-specific-methods/validategoogleplaypurchase?view=playfab-rest#iteminstance

How can i get something like the "purchaseType" described in https://developers.google.com/android-publisher/api-ref/purchases/products with "Validate Google Play Purchase" api?

Thanks.

apis
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

·
JayZuo avatar image
JayZuo answered

PlayFab won't return "purchaseType" with ValidateGooglePlayPurchase API. This API will only validate the receipt you've provide and grant corresponding item to the player when the receipt is valid. If you want to get more info, you can try to call Purchases.products: get with CloudScript or Azure Function.

Also, you are welcom to Post an idea for this feature request.

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.