[SOLVED] Unit IAP google play response to update result

Hi all,
This is the last hurdle for me before I launch my app.

As it stands this is what I got :
Buttons on screen which call the template unity purchase IAP script.
I click a button caling this function :

public void BuykProductIDConsumable99p()
	{
    // Buy the consumable product using its general identifier. Expect a response either through ProcessPurchase or OnPurchaseFailed asynchronously.
	BuyProductID(kProductNameGooglePlay99);
	//BuyProductID(kProductNameGooglePlay99);
	}

That works fine, I goes to google and works great.

When it comes back is where I have a probelm.

I have a file called GamePreferences, a static class which runs this function :

public static int GetGlobaltoys(){
return PlayerPrefs.GetInt(GamePreferences.Globaltoys);
}

The problem is, the purchaser script from unity wont allow me to interact with my script. I tried adding gamepreferences into a shared namespace and also including different libraries at the top, I also tried addng the script directly to it but it ‘Can’t add script behaviour GamePreferences. The script class can’t be abstract!’

All I want to do is update the player preferences when a successful purchase happens. I tried getting the purchase script to save directly to playprefs but the results arent saved. I’ll look at encrytion after this. I’ve also considered storing online but the app does that alsready afterwards.

I just can’t get the result from the google play and update anything at all locally as I don’t understand how the purchaser script saves info.

Help would be awesome on this one, I can get it live then. I’ll give a cheat code out to anyone who helps.

Until then all I can offer is this to make you smile :

70477-47a11v.jpg

[SOLVED]
The purchaser script needed to be in my Assets folder

Could it be anything to do with the folder structure? IAP is in the plugins and my other scripts are in the assets / script folder