Sign In Register

How can we help you today?

Start a new topic
Answered

Does receipt validation with Google Play happen on the server?

I've implemented Unity's IAP for an Android app and am validating the receipt on GameSparks. However, I'm not completely clear what happens when the purchase happens and I send a request using GooglePlayBuyGoodsRequest - Does GameSparks contact Google during the receipt validation if the receipt is invalid and so cancel the purchase (well.. invalidate the purchase so that the player doesn't own that item)? Or is this something I need to do once I get a response with errors in it?


Best Answer

Hi Jenny,


Receipt validation happens on the Google side of things. 

GameSparks simply passes it to Google, and Google decides if the receipt is valid/invalid.


If we get an error from Google we give you the appropriate error.


Thanks


Oisin



Anyone?

Answer

Hi Jenny,


Receipt validation happens on the Google side of things. 

GameSparks simply passes it to Google, and Google decides if the receipt is valid/invalid.


If we get an error from Google we give you the appropriate error.


Thanks


Oisin


Brilliant - thank you!

Hey Jenny, I'd love to know how you went about getting the purchaseData and dataSignature strings out of the IAP receipt in Unity for the GooglePlayBuyGoodsRequest. Any help would be greatly appreciated! -Sean

3 people like this
Login to post a comment