lz7cjc:
Hi
I thought I had got my IAPs sorted as I was getting the relevant messages and pop ups in my app. However when I build the app and run on phone (either iphone or android) nothing appears to happen
I have installed IAP and set up with my account
Analytics is turned on and I have my unique identifier
When I click the button in Editor I get:
IAPButton.PurchaseProduct() with product ID: com.beriro.masterchange.R1
UnityEngine.EventSystems.EventSystem:Update() (at C:/Program Files/Unity/Hub/Editor/2019.4.0f1/Editor/Data/Resources/PackageManager/BuiltInPackages/com.unity.ugui/Runtime/EventSystem/EventSystem.cs:377)
purchase({0}): com.beriro.masterchange.R1
UnityEngine.EventSystems.EventSystem:Update() (at C:/Program Files/Unity/Hub/Editor/2019.4.0f1/Editor/Data/Resources/PackageManager/BuiltInPackages/com.unity.ugui/Runtime/EventSystem/EventSystem.cs:377)
with no errors
I would really appreciate some help in understanding where I have gone wrong (happy to provide more info but not sure what I need to give)
thanks
I would suggest that you start with the Sample IAP Project here, and provide the device logs. Easiest to start on Android. Ensure to place plenty of Debug.Log statements throughout your purchasing code to help debug any issues, they will show in the device logs. I would recommend Scripted IAP instead of Codeless, we still need to update Codeless.
https://discussions.unity.com/t/700293/3
https://discussions.unity.com/t/699654
https://docs.unity3d.com/Manual/UnityIAPGoogleConfiguration.html
1 Like