PlayFab supports in-app purchase via Google Play by providing receipt validation, a critical feature to reduce fraud and prevent hacking by players. Android games first complete a transaction on the client, then submit the receipt to PlayFab. PlayFab verifies with Google that the receipt is valid, and also checks an internal database to make sure this is the first time the receipt is being presented. Only then does PlayFab credit the player’s account with the item (or currency) purchased.
How it Works
After you setup your app in the Google Play developer portal, you will be given the Google App Package ID and License Key. Install this integration, then fill in those fields. PlayFab will use this information to validate receipts. Note that you do not need to install this add-on in order to login with a Google account.