- Code: Select all
client.Yahoo.Payments.ShowBuyCoinsDialog(
100, //coinamount
new Dictionary<string, string>() { //dialog arguments
{ "name", "100 Coins" },
{ "description", "100 Coins for your game!" },
{ "icon", "http://urlToSome.png" },
{ "currency", "usd"}
},
delegate(Dictionary<string, string> info)
{ //success callback
Debug.Log("Success");
//Purchase completed
m_client.PayVault.Refresh(delegate()
{
//Vault now contains the new balance
});
},
delegate(PlayerIOError error)
{
//Purchase cancelled or failed
Debug.Log(error);
});
After it, I expect that will be called any delegate.
But nothing happens.
No exceptions generated when this function is called, some delegate is not called.
How do you know what I'm doing wrong?