Page 1 of 1

Grab paid amount from paypal

Posted: Mon Jan 12, 2009 11:17 pm
by invisibled
Hey everybody,

Normally i wouldn't post such a general problem but i am completely stuck. I have a site that you donate to certain projects via paypal.

What i need it to do is user clicks the "donate" button, gets taken to paypal and donate any amount they wish. Then I can send their browser back to a page on my server that will take the amount they donated and insert in to the database

problem is, how do i get the amount they donated? ideas? If you can think of a better process lay it on me :)

Re: Grab paid amount from paypal

Posted: Tue Jan 13, 2009 2:30 am
by paqman
Do you have a paypal account set up for this? If you do, run your site through https://developer.paypal.com/ to get it functioning. It's very handy to have Paypal help you run fake transactions through your website until you're certain it works perfectly. Inside the Sandbox area you should be able to find a few examples of how your website can connect to paypal and receive a $_POST containing all the transaction information (which is where you'd get your donation amount from). Good luck.