asmith Posted January 9, 2008 Share Posted January 9, 2008 how can i put a paypal donation link AND save the amount the user has donated in sql ?? in others words how can i have the amount he has donated in a variable? ( i guess phpfreaks has this option too , to be recognize ...) Quote Link to comment https://forums.phpfreaks.com/topic/85212-solved-paypal-donation-like-phpfreaks/ Share on other sites More sharing options...
drummer101 Posted January 9, 2008 Share Posted January 9, 2008 You're looking for the paypal IPN.. http://www.web-bureau.com/modules/free-php-paypal-ipn-script.php Quote Link to comment https://forums.phpfreaks.com/topic/85212-solved-paypal-donation-like-phpfreaks/#findComment-434750 Share on other sites More sharing options...
asmith Posted January 9, 2008 Author Share Posted January 9, 2008 i have to put "paypal donate" link on site, and user have to transfer money through my site , right??? then just use IPN script ??? a little confused, i'm so noob in paypal .. Quote Link to comment https://forums.phpfreaks.com/topic/85212-solved-paypal-donation-like-phpfreaks/#findComment-434757 Share on other sites More sharing options...
chronister Posted January 9, 2008 Share Posted January 9, 2008 You create the paypal account and then if you are just looking for donations, you can create a button right from their site and just copy and paste the code into your site and you can accept donations from visitors. Nate Quote Link to comment https://forums.phpfreaks.com/topic/85212-solved-paypal-donation-like-phpfreaks/#findComment-434774 Share on other sites More sharing options...
asmith Posted January 9, 2008 Author Share Posted January 9, 2008 no , that putting the link for donate , and that's all ! i want to save in a field in sql database how much my site user ( not site visitor) has donated . i want to save that amount. that's done with IPN ? Quote Link to comment https://forums.phpfreaks.com/topic/85212-solved-paypal-donation-like-phpfreaks/#findComment-434784 Share on other sites More sharing options...
revraz Posted January 9, 2008 Share Posted January 9, 2008 Yes, you can also write the amount into a DB. Quote Link to comment https://forums.phpfreaks.com/topic/85212-solved-paypal-donation-like-phpfreaks/#findComment-434786 Share on other sites More sharing options...
drummer101 Posted January 9, 2008 Share Posted January 9, 2008 Paypal IPN = instant notification, you can always alter the script to include a SQL insert statment with the amount donated. Otherwise you can do what I did because I was lazy, and didn't want to get the IPN set up, and write a simple donation form for administrators to fill out when donations have been recieved. Form: Relevent information (Amount, date recieved, user, etc..) Handle: Insert to DB Donate Applet: Top donators for month Quote Link to comment https://forums.phpfreaks.com/topic/85212-solved-paypal-donation-like-phpfreaks/#findComment-434789 Share on other sites More sharing options...
asmith Posted January 9, 2008 Author Share Posted January 9, 2008 well i guess i go through IPN , i 've just started reading it , why it needs a table with all that columns ? it wants to record everything ? when a user is donating he is actually on paypal site, how IPN get the amount of his transfer and record that to my site ? IPN is running when he is on paypal site , right ? Quote Link to comment https://forums.phpfreaks.com/topic/85212-solved-paypal-donation-like-phpfreaks/#findComment-434797 Share on other sites More sharing options...
drummer101 Posted January 9, 2008 Share Posted January 9, 2008 Paypal gives you the option to pass the processed (their) information back to you, thats what the IPN system is. typical layout would go: user clicks button -> submits infomation to paypal -> paypal redirects user + information back to your site. Quote Link to comment https://forums.phpfreaks.com/topic/85212-solved-paypal-donation-like-phpfreaks/#findComment-434817 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.