Forum PayVault Error on Get Users Payvault URGENT!

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

Error on Get Users Payvault URGENT!

Postby BlackOps3 » December 10th, 2015, 8:11 am

Error 1 'PlayerIO.GameLibrary.Client' does not contain a definition for 'GetUserPayVault' and no extension method 'GetUserPayVault' accepting a first argument of type 'PlayerIO.GameLibrary.Client' could be found (are you missing a using directive or an assembly reference?)

Doc Code i tried: PayVault vault = PlayerIO.GetUserPayVault("connectUserId");
Won't work every time i try the code it gives the above error :(
BlackOps3
 
Posts: 12
Joined: December 6th, 2015, 8:22 pm

Re: Error on Get Users Payvault URGENT!

Postby Henrik » December 11th, 2015, 7:36 pm

This only works in serverside code, not clientside, could that be it?

I just downloaded the latest SDK, opened an example Multiplayer game serverside code solution, added that line of code, and it works perfectly fine? Are you using an old SDK version?
Henrik
.IO
 
Posts: 1832
Joined: January 4th, 2010, 1:53 pm

Re: Error on Get Users Payvault URGENT!

Postby BlackOps3 » December 11th, 2015, 8:37 pm

i just tried that on serverside c# new sdk download same error :\
BlackOps3
 
Posts: 12
Joined: December 6th, 2015, 8:22 pm

Re: Error on Get Users Payvault URGENT!

Postby Henrik » December 12th, 2015, 1:13 am

Are you in the right context? What happens if you try to do PlayerIO.BigDB.Load("a", "b", null) at the same place? You have to be in the context of a game, i.e. you have to be in one of the methods that you override when subclassing Game<T>:

https://gamesnet.yahoo.net/documentatio ... e#PlayerIO
Henrik
.IO
 
Posts: 1832
Joined: January 4th, 2010, 1:53 pm


Return to PayVault



cron