In App Purchasing is NOT working!!!

I have tried the last two weeks to get this working using multiple plugins.

I am using Prime 31 as the pluging now and here is the rundown.

I have a sprite acting like a button, when someone presses this texture, I want the google payment screen to pop up (which it does) and when the payment succeeds, add 500 coins to the player pref?

Here is my code

using UnityEngine;
using System.Collections;

public class coins500 : MonoBehaviour {
	static int coins01; 
	static int bought;

	void OnEnable(){
		IABAndroidManager.purchaseSucceededEvent += purchaseSucceededEvent;
	}
	// Use this for initialization
	void Start () {
		var key = "etc";
		IABAndroid.init( key );
		IABAndroid.startCheckBillingAvailableRequest();
	}

	void purchaseSucceededEvent( string productId )
	{
		coins01 = 500 + PlayerPrefs.GetInt ("Coins");
		PlayerPrefs.SetInt ("Coins", + coins01);
		PlayerPrefs.Save ();
	}

	
	void OnMouseDown () {
		IABAndroid.purchaseProduct ("android.test.purchased");
				}				
			
		}

	}

It wont give the player the 500 coins when the purchase works? what im I missing???

You need to specify a product id:

void purchaseSucceededEvent( string productId ){
    
    if(productId == "YourProductID"){

       coins01 = 500 + PlayerPrefs.GetInt ("Coins");
       PlayerPrefs.SetInt ("Coins", + coins01);
       PlayerPrefs.Save ();

    }
}

It looks like the answer was publishing the store page on Google Developer Console.

Next time, you can attach a debugger or throw in some Debug.Log messages to see what’s going on. If you would have put some log messages in purchaseSucceededEvent, you probably would have seen that you never got those messages because the purchase never succeeded.