IAP Button: Should On Purchase Fail and On Purchase Complete work in editor?

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:

86708-capture.png

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

86709-capture.png

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?

(I’m sure this is way too late to help the OP, but for others who come across this question…)

Your success and failure methods need to handle the specific arguments that the IAP button script wants to return, e.g.:

	public void BuyComplete(UnityEngine.Purchasing.Product product)
	{
		//purchase was successful
	}

	public void BuyFailed(UnityEngine.Purchasing.Product product, UnityEngine.Purchasing.PurchaseFailureReason failureReason)
	{
		//purchase was unsuccessful
	}

Once you have hook those up to your IAP button, they will be called, even in the Editor.

-Scott