Grab paid amount from paypal

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
invisibled
Forum Contributor
Posts: 112
Joined: Sun Apr 29, 2007 3:35 pm
Location: New Westminster

Grab paid amount from paypal

Post 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 :)
User avatar
paqman
Forum Contributor
Posts: 125
Joined: Sun Nov 14, 2004 7:41 pm
Location: Burnaby, BC, Canada

Re: Grab paid amount from paypal

Post 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.
Post Reply