Important: You need to connect your game to an app store before you can start validating purchases. This can be done when adding a game or from the Services tab in-game settings.
In order to make sure all your IAP are legit we recommend all developers to use the purchase validation system. There are many factors that can degrade the revenue information tracked such as client issues or hacking. GameAnalytics comes with a fast and easy Purchase Validation solution which allows users to distinguish valid business events from the non-valid ones. After you instrument the game you will be able to filter the revenue data accordingly.
What is my bundle ID?
The bundle ID is the unique identifier that distinguishes your app from others on the stores and it is named by the developer and included in the app for the publishing aspect. The standard format of the bundle identifier is:
You are required to declare this identifier in the settings section of your game for serving in-app purchase validation methods. The tool assimilates all received business events from the client and it is highly recommended to implement the validation feature in order to view which of your revenue events are legit.
We bring a single line solution on the client for sending the business event and validating the transaction which can be easily used anywhere inside your game. You will need to fetch the receipt from your in-app purchase provider and attach it to the business event using our built-in method. If the receipt is null/nil then our servers will register that amount as not validated.
Note: The validation system on iOS supports sandbox receipts.
Purchase validation on Android is a two-step process of first assigning the Google Play Licensing key to your game and secondly instrumenting the game with business events that contain receipts.
How do I find my app’s Google Play Licensing key (also known as Google Play public key) from the Developer Console?
To find the license key for your application you need to log into your Google Play Developer Console, click All applications and go to Services &APIs under Development tools:
Once you have copied the key you need to add it to your game under the game settings.
Where do I find the Amazon Shared Key?
For the Amazon shared key you will need to login to the site for developers on Amazon and you will be able to find the key in the Shared Key section.
What does GameAnalytics use the Google Play Licensing key (Google Play public key) or the Amazon shared key for?
GameAnalytics uses these keys for verifying in-app purchases related to business events sent to their servers, so invalid purchases made from pirated games don’t pollute the pool of valid business event when doing analysis on the events.