Really quick PayPal API job, should be pretty straight forward. I need a script that will allow users to buy X credits, paying through paypal and once that's confirmed, they receive their credits to their account. I would also like a 'refund' button I can click to lead me to a paypal refund payment page.. although this is not vital.
All possible paypal info here but crucially:
userID, credit#, date/time, transaction status, transaction id
Transactions count, Number of credits
Things to note: The user may already have credits so we need to just add on to their existing credits.
That is pretty much it. Script in PHP and mySQL. Will need variables like table names easy to change as they no doubt will change..