Adding value to database after purchase?

09/09/2011 13:44 Andrew.A#1
Is there a way to have something added to the database when a purchase is made, like tq adds cps after you buy
09/09/2011 18:56 Arco.#2
Have them log into the website with the same username and password as the game account, and when they make the purchase, add the data to the db.
09/09/2011 22:27 Andrew.A#3
So there is no way without the login?
09/09/2011 23:08 pro4never#4
Paypal has a built in system for this... I'd do some research into it really.

As stated though the best way to deal with it is having people make their donations while logged into their account so that it knows what account to credit to. If they are NOT logged in when returning to site from purchasing, ask them for a username to credit to.
09/10/2011 01:21 _DreadNought_#5
Give them codes.

After purchase give them codeees. enter code and to what acc and credit.
09/10/2011 02:40 .Beatz#6
I agree with Dread... codes is soo much easier... Once the payment has been accepted make a random code (specific amount of letters/number etc) email to the buyer and insert it into an encrypted MySql table / something similar.
09/10/2011 03:39 _DreadNought_#7
Or use an algorithm to generate the code and cross-refrence it to check if its been used, Have the algorithm check if that random code has been "randomated" before, and if so randomize a new one untill that is false. Thought i'd explain it in a tad more detail then .Beatz did so you get a better idea.
09/10/2011 04:01 .Beatz#8
Quote:
Originally Posted by _DreadNought_ View Post
Or use an algorithm to generate the code and cross-refrence it to check if its been used, Have the algorithm check if that random code has been "randomated" before, and if so randomize a new one untill that is false. Thought i'd explain it in a tad more detail then .Beatz did so you get a better idea.
Thanks man couldn't be arsed to go into more detail... But yeah... Exactly what I mean
09/10/2011 12:22 Andrew.A#9
Well im looking into the whole Paypal php toolkit, hoping that may shed some light on some things
09/14/2011 02:31 xBlackPlagu3x#10
If you find any data on that subject would you PM me where you found it? This would be a nice way to take more workload off my back =D