Forum Scripting nothing happens on client.Yahoo.Payments.ShowBuyCoinsDialog

Post your problems and discussions relating to scripting in Unity here.

nothing happens on client.Yahoo.Payments.ShowBuyCoinsDialog

Postby Zanleo » March 25th, 2015, 8:47 am

For Unity i call
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?
Zanleo
 
Posts: 3
Joined: March 19th, 2015, 3:29 pm

Re: nothing happens on client.Yahoo.Payments.ShowBuyCoinsDia

Postby Henrik » March 26th, 2015, 4:38 am

Where are you running your game?
Henrik
.IO
 
Posts: 1880
Joined: January 4th, 2010, 1:53 pm

Re: nothing happens on client.Yahoo.Payments.ShowBuyCoinsDia

Postby Zanleo » March 26th, 2015, 8:16 am

Henrik wrote:Where are you running your game?

On https://games.yahoo.com/game/
Zanleo
 
Posts: 3
Joined: March 19th, 2015, 3:29 pm


Return to Scripting