I implemented Soomla inn app purchase for android in unity it work fine but my score in not updated when purchase completed successfully what i do.I set the "android.test.purchased" for purchasing. Here is my Code
void Start ()
{
PlayerPrefs.SetInt("Score" ,0)
}
void CheckIAP_PurchaseStatus()
{
//What I do here ????? below check not working for me
if (StoreInventory.IsVirtualGoodEquipped ("coinspack_a_item_id"))
{
PlayerPrefs.SetInt("Score" , PlayerPrefs.GetInt("Score") + 8000);
}}
void OnGUI ()
{
if (GUI.Button(new Rect(10, 10, 50, 50), "Buy"))
{
try {
StoreInventory.BuyItem ("coinspack_a_item_id");
}
catch (Exception e)
{
Debug.Log ("SOOMLA/UNITY" + e.Message);
}
}
}