Sample IAP Project

Here is Version 4 of the Sample IAP Project. This project is using IAP 4.4.1 and UGS Analytics 4.2.0. It demonstrates a deferred purchase listener as well as the IAP initialization listener. If IAP cannot initialize, we will retry and SetQueryProductDetailsFailedListener is triggered on each retry. For example, test without an Internet connection and you will see the retry count in the debug output. This project also demonstrates UGS Analytics initialization and the sending of a UGS Analytics Custom Event in the Restore method. When opening this project after unzipping, ensure to relink to your own Unity ProjectID. If you want to use receipt validation, you will need to obfuscate your Google Public Key (leave the field blank if targeting Apple only)

8432501–1116704–PureRockets_IAP.zip (224 KB)

17 Likes