Forum PayVault client.Yahoo.Payments.ShowBuyCoinsDialog Error

Discussion and help relating to the PlayerIO payment solution, PayVault.

client.Yahoo.Payments.ShowBuyCoinsDialog Error

Postby Nickolay » March 14th, 2015, 6:00 am

Hello! I take from documentation example to Authenticate and Pay. Target currency: "USD", Exchange rates: From example - "1000EUR=1300,100FBC=700,100COINS_FROM_SR=1000,100COINS_FROM_KONG=100". Code:
Code: Select all
PlayerIO.Authenticate(
         "MY GAME ID",            //Your game id
         "private",                               //Your connection id
         new Dictionary<string, string> {        //Authentication arguments
         {"userToken", "Long-Long token"}
      },
      null,                                   //PlayerInsight segments
      delegate(Client client) {
         client.Yahoo.Payments.ShowBuyCoinsDialog(
            100,                                                //coinamount
            new Dictionary<string, string>() {                  //dialog arguments
            { "name", "100 Coins" },
            { "description", "100 Coins for your game!" },         
            { "icon", "http://Adress_TO.pngImage" },
            { "currency", "usd"}
         },
         delegate(Dictionary<string, string> info) {         //success callback
            //Purchase completed
            client.PayVault.Refresh(delegate() {
               //Vault now contains the new balance
            });
         },
         delegate(PlayerIOError error) {                     //error callback
            //Purchase cancelled or failed
            Debug.Log(error);
         });
      },
      delegate(PlayerIOError error) {
         //Error authenticating.
         Debug.Log(error);
      }
      );


Error: "InvalidPurchaseArguments; You need to set up exchange rates in the admin panel to be able to buy coins through Yahoo!"
Read https://gamesnet.yahoo.net/forum/viewtopic.php?f=37&t=35022 But not understand. Where to insert the code segments are shown in the example, especially Http request? Could you suggest a full working code segment?
Nickolay
 
Posts: 3
Joined: March 14th, 2015, 5:45 am

Re: client.Yahoo.Payments.ShowBuyCoinsDialog Error

Postby Nickolay » March 14th, 2015, 6:09 am

Another question. If I use the Enable PayVault for Facebook Credits is necessary to pay double fee? In Facebook 30% and Yahoo Games Network 30%?
Nickolay
 
Posts: 3
Joined: March 14th, 2015, 5:45 am

Re: client.Yahoo.Payments.ShowBuyCoinsDialog Error

Postby Henrik » March 16th, 2015, 11:17 pm

You need to enter your exchange rate string in the Control Panel. Go to the PayVault section, click the tab Configure PayVault, enable Yahoo at the bottom, and enter the string in the Yahoo Coins Price Points field.

Yahoo takes a 30% cut of payments processed through Yahoo Games Payments. Facebook takes a 30% cut of payments processed through Facebook Payments. Since a payment has to be processed by either or, both can't take a cut. :-)
Henrik
.IO
 
Posts: 1853
Joined: January 4th, 2010, 1:53 pm


Return to PayVault



cron