Forum C# Need to update the payvault coins of the user.

Need to update the payvault coins of the user.

Postby itsmylifesoham » August 25th, 2011, 6:51 am

Hi,

I have a php website powered by social engine V4 (php scirpt basically) so its a php website.
Now a user can recharge his account on my website say with $5. What i want to do is, update this user's payvault by adding the 5 price coins. However its a php website, so no .NET client.

I cant do it from flash as client cannot be trusted to update his own payvault coins.

How can i do this?

When a person loses a game, i would be using the Web class to update his balance in MySQL database on my webserver right? But how to update his payvault coins when he recharges his account with some more cash.?

Thanks.
itsmylifesoham
 
Posts: 36
Joined: June 27th, 2011, 9:08 am

Re: Need to update the payvault coins of the user.

Postby Benjaminsen » August 26th, 2011, 8:05 pm

As we do not have a PHP API you have one option to do this securely. When a player connects to a Multiplayer instance of your game, request a page on your server with the web class to refresh the users PayVault.

(Naturally such requests can be done with a frequent interval as well)

A better solution is naturally to use the pre made PayVault integrations.
Benjaminsen
.IO
 
Posts: 1444
Joined: January 12th, 2010, 11:54 am
Location: Denmark


Return to C#