Question by
_Shockwave · Apr 15, 2016 at 11:58 PM ·
iapsecurityin-app-purchase
How to protect against fraud in Unity IAP? I have over 7k of unverified revenue!!!
Hi Unity,
I have a big problem. There is over $7k of unverified revenue in my game. How do I fix this problem? Google is only reporting about $20 .... What's going on? See screenshot!
unverified-revenue.png
(61.1 kB)
Comment
Answer by nicholasr · Jul 25, 2016 at 11:06 PM
@_Shockwave - $20 versus $7000 seems to be an unusually large amount of fraud.
Regardless, integrating Client Side Receipt Validation is one approach to protecting against fraud: https://docs.unity3d.com/Manual/UnityIAPValidatingReceipts.html It's a cryptographic verification of the transaction.
Essentially, grab your Google Play Public Key from your account, paste it into the Dialog, and integrate the code from the link above. Then, only "fulfill" the purchase if receipt validation succeeds.
Your answer
![](https://koobas.hobune.stream/wayback/20220612074924im_/https://answers.unity.com/themes/thub/images/avi.jpg)