Hey Guys,
After upgrading my project to 2018.2.0b3 (to fix Physics interpolation issues) I’ve noticed the Unity IAP has stopped working correctly.
To see what’s been going on I’ve used a fresh project and installed the IAP stuff from the Services tab. When trying to make a purchase (using the example Scene) I get the following error:
This is the same error I get in my main project.
As a comparison I did the same on version 2018.1.0f2 and get a purchase successful message. It also works fine in Unity 2017
When I deployed my main project to my Android device I was actually able to make the test purchase (I got a Google receipt etc) but the code that is meant to be activated upon successful purchase was not triggered ( unlocking levels in my case).
Any ideas? I’m at a bit of a loss, I was intending to launch my game this week but this has knocked me back somewhat.
Another developer on my team thinks it could be related to the new Package Manager perhaps?
Advice most appreciated!
Error below for more clarity…
TypeLoadException: Could not load type ‘SimpleJson.SimpleJson’ from assembly ‘UnityEngine.Purchasing’.
UnityEngine.Purchasing.PurchasingManager.OnPurchaseSucceeded (System.String id, System.String receipt, System.String transactionId) (at /Users/justing/development/unity4/Extensions/UnityPurchasing/Runtime/Purchasing/PurchasingManager.cs:111)
UnityEngine.Purchasing.JSONStore.OnPurchaseSucceeded (System.String id, System.String receipt, System.String transactionID)
UnityEngine.Purchasing.FakeStore.<>n__0 (System.String id, System.String receipt, System.String transactionID)
UnityEngine.Purchasing.FakeStore+<>c__DisplayClass15_0.b__0 (Boolean allow, PurchaseFailureReason failureReason)
UnityEngine.Purchasing.UIFakeStore+<>c__DisplayClass14_01[UnityEngine.Purchasing.PurchaseFailureReason].<StartUI>b__0 (Boolean result, Int32 codeValue) UnityEngine.Purchasing.UIFakeStore.OkayButtonClicked () UnityEngine.Purchasing.UIFakeStore.<InstantiateDialog>b__16_1 () UnityEngine.Events.InvokableCall.Invoke () (at C:/buildslave/unity/build/Runtime/Export/UnityEvent.cs:166) UnityEngine.Events.UnityEvent.Invoke () (at C:/buildslave/unity/build/Runtime/Export/UnityEvent_0.cs:58) UnityEngine.UI.Button.Press () (at C:/buildslave/unity/build/Extensions/guisystem/UnityEngine.UI/UI/Core/Button.cs:36) UnityEngine.UI.Button.OnPointerClick (UnityEngine.EventSystems.PointerEventData eventData) (at C:/buildslave/unity/build/Extensions/guisystem/UnityEngine.UI/UI/Core/Button.cs:45) UnityEngine.EventSystems.ExecuteEvents.Execute (IPointerClickHandler handler, UnityEngine.EventSystems.BaseEventData eventData) (at C:/buildslave/unity/build/Extensions/guisystem/UnityEngine.UI/EventSystem/ExecuteEvents.cs:50) UnityEngine.EventSystems.ExecuteEvents.Execute[IPointerClickHandler] (UnityEngine.GameObject target, UnityEngine.EventSystems.BaseEventData eventData, UnityEngine.EventSystems.EventFunction
1 functor) (at C:/buildslave/unity/build/Extensions/guisystem/UnityEngine.UI/EventSystem/ExecuteEvents.cs:261)
UnityEngine.EventSystems.EventSystem:Update()