View Full Version : PayPal & PHP?
dniwebdesign
12-17-2004, 10:44 AM
Don't know if this is the right forum for this but here it goes.
I have a website where a user purchases credits. The payment process is going to be handled through PayPal. However instead of my having to manually update the users account upon successful transaction (meaning they paid me and I got the money in my account) I would like it to make it so it can do it instantly after they did a sucessful transaction.
So a user pays through paypal and the credits are instantly added to his account. Is there any possible way to do this?
yes. you can set up a server to server process between your webserver and the paypall server. i'm sure you'll find all the info you need, including samplecode, on the paypall site or through goolge or by searching this forum.
cyphix
12-17-2004, 11:51 AM
Try this... http://paypaltech.com/how-to/phptoolkit/.. it's what I use.. but you'll still need to do a fair but of mucking around yourself with the page that you send the users back to after they have paid... such as checking their payment was the correct amount, if the sale was "comepleted" etc etc..
dniwebdesign
12-17-2004, 06:24 PM
Alright, I'll check them out... thanks.
zoobie
12-17-2004, 09:21 PM
I wish that paypaltech had existed a few years ago. I ended up writing my own code. All I found on it was the paypal development site that just wanted to sell me a finalized script. Just remember that PP posts it's vars to your return page where your script resides. :cool:
dniwebdesign
12-18-2004, 03:01 AM
What's with the Sandbox of Paypal? If I add money to a sandbox account from my bank account do I actually move that money or is only a mock? If it is only a mock how come it still takes 6-8 days. :(
dniwebdesign
12-19-2004, 07:17 AM
I tried out the form and I get this error:
You don't have permission to access /utexts/php_paypal/<br /><b>Notice</b>: Use of undefined constant url - assumed 'url' in <b>c:/server/htdocs/utexts/php_paypal/process.php</b> on line <b>26</b><br />https://www.sandbox.paypal.com/cgi-bin/webscr on this server.
cyphix
12-19-2004, 08:28 AM
Hmmm.... I dunno, I never bothered with the sandbox myself. Maybe u could try asking @ Paypal's developer network forum @ www.paypaldev.org ? Might get better help there. :)
dniwebdesign
12-19-2004, 08:48 AM
Well I uploaded it to a differnet server than the one hosted on my computer... seems to work fine. :rolleyes:
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.