question

Thiago Lopes Rosa avatar image
Thiago Lopes Rosa asked

How to record a Google Play transation?

I would like to record the purchases from Google Play on Playfab in order to have the stats on the Dashboard (Purchases, Spenders, ARPU, ARPPU, etc).

The "StartPurchase/PayForPurchase/ConfirmPurchase" doesn't work because it says that it is unable to find the payment provider.

The below link doesn't say anything about Google Play:

https://api.playfab.com/docs/tutorials/landing-commerce/non-receipt-payment-processing

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

·
brendan avatar image
brendan answered

That's because Google Play specifically uses a receipt system. Once you have the receipt, you would use https://api.playfab.com/documentation/client/method/ValidateGooglePlayPurchase. That API call checks that the receipt is valid, that it's for your title, that it hasn't already been used, and then finds the correct item in the game catalog and adds it to the player's inventory.

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.

Thiago Lopes Rosa avatar image Thiago Lopes Rosa commented ·

Thank you, it worked!

0 Likes 0 ·

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.