I’m setting up IAP Buttons for the first time, and while testing in the editor I seem to have things working well based on Debug and Fake Store… however, the final piece of the puzzle isn’t doing what I expected. Specifically, when the purchase fails due to Fake Store not actually having the item for purchase, I’m not getting the “On Purchase Fail” methods to respond. Maybe it will help if I post an image or two of what I have in the editor and console:
The IAP Button in question is configured as so:

The console reads as follows when I activate that IAP button:

Now, shouldn’t the On Purchased Failed section kick in? Those two things by the way just set UI panels to active or inactive, nothing fancy. But they are not doing what they should… or what I THOUGHT they should in this situation.
Also:
Is there anyway to test in editor with FakeStore and get the On Purchase Complete to trigger successfully?
My guess would be that as time var is not local it is common to different instances of the couroutine or maybe you manipulate it on different part of the script or what Mr. Bunny said. Or maybe you destroy the Object from where you call the Coroutine. I ll stop guessing here, if it isn't any of the above you got to give more info.
– PizzaPieProbably some racing condition; Different timings in development vs android environment yield different results. Can you post the way you are invoking the co-routine (not just the invocation but the whole context)?
– yanivng