Hi! I’m using codeless IAP buttons, everything works i can buy things using Google’s iap but the OnPurchaseComplete does nothing, instead in the log after I finish the purchase I get Unity IAP: Already recorded transaction.... UnityEngine.Purchasing.PurchasingManager:ProcessPurchaseIfNew(Product) System.Action:Invoke() UnityEngine.Purchasing.Extension.UnityUtil:Update() (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 39) And that’s it, no OnPurchesCompleteEvent
When I try to purchase something that I already own I get onPurchaseFailedEvent(productId:...) which seems normal.
I purchase using a test account on android but the function OnPurchaseComplete never triggers.
I still can see what the user bought and give them the item because in IAPDemo.cs I still get the receipt with product.hasReceipt it returns normally if the item was bought or not. I’m using directly the IAP Codeless buttons and IAPDemo sample to make purchases
You have no code to award any product to the user. You are trying to call properties. You would want to get the GrantCredits example working first. https://docs.unity3d.com/Manual/UnityIAPCodelessIAP.html . Also note that Codeless is not recommended, it needs some work. It doesn’t support receipt validation, deferred purchases or subscriptions. Instead, I would recommend that you start with Scripted IAP using the Sample IAP Project here https://discussions.unity.com/t/700293/4
I not looking at how to award anything right now, I’m saying that the OnPurchaseComplete does not trigger when the purchase is completed by the user. for example. the “thankyoupanel” gameobject never gets activated
That would be expected, you are not calling a method like GrantCredits like I mentioned. In GrantCredits (or whatever you choose to call it), then activate the panel