[Solved] Manual unclear about Android IAP Receipt validation: Where to enter Google Public API Key?

In the manual there are different information about how to use the Google Public API Key.

On this page

it states to enter it in the “IAP Receipt Validation Obfuscator” window in the Unity Editor.

On this page
https://docs.unity3d.com/Manual/UnityAnalyticsReceiptVerification.html
it’s described to enter it in the “Analytics dashboard Project Settings Form”.

What is really needed in order for Android IAP Receipt validation to work property?
Only one of them (exclusively) or both?

Thanks for clearing that up!

Best regards

@Hefeteig ,

Those are actually two different features, although they do have confusingly similar names.

Receipt Verification
This is done on our servers when we receive any transaction events from your app. For Google Play and iOS App Store, we will verify the receipt we have received with Google and Apple, respectively.

This is how we determine if revenue is shown as Verified or Unverified on the Analytics dashboard.

This happens automatically for Apple, but for Google Play we need the Google API key entered into your Configure page.

Receipt Validation
This happens in your app itself. You can use this feature to determine if users have given you a valid receipt. This is useful because you should only fulfill the item if the receipt is valid. This can help reduce fraudulent purchases.

In order for this to work, you would need to enter the Google API key in the Obfuscator. Clicking this button will create the Apple and Google tangle, which is used when validating the receipts.

I hope that clarifies the situation.

Wow thanks for the quick answer!

So basically “Receipt Verification” is just to make the Analytics data on the Website more accurate/enriched.

Yes, that’s correct.