How can I verify paypal donation?
In user panel I have donate button. And once someone actually donates I want to do something to him. But I do not how to check if user actually donated or just clicked donate button.
How can I verify paypal donation?
In user panel I have donate button. And once someone actually donates I want to do something to him. But I do not how to check if user actually donated or just clicked donate button.
And once someone actually donates I want to do something to him.
That sounds a bit scary actually :) :) I'm not sure whether that would motivate me to donate, hehe.
Serioisly: It's in the same manual. May be a bit tougher to do however, as you will need a PHP script that receives the payment info.
Return URL – Let people return to a page on your website if they click a return link or button on the PayPal payment confirmation page.
To learn more, see Step 2 of Page 2 – Specifying Advanced Features of Your Donate Button or HTML Variables for Displaying PayPal Checkout Pages.
Auto Return – Have PayPal return people automatically to a page on your website. Important: PayPal recommends that you turn Payment Data Transfer on when you turn Auto Return on. With Auto Return on, PayPal redirects people to your website from an alternative PayPal payment confirmation page that does not display a View Printable Receipt link, so people cannot print PayPal payment receipts. Payment Data Transfer provides the transaction information that you need to let people print receipts from your website.
To learn more, see Auto Return.
Payment Data Transfer – PayPal includes information about the completed transaction when you use a return URL or Auto Return to send people back to your website. Use the information that Payment Data Transfer provides to display a “thank you, print your receipt” page on your website.
To learn more, see the Payment Data Transfer page on Developer Central.
Look in to Paypal's IPN (Instant Payment Notification)
When someone makes a payment or donation to your Paypal account, Paypal will send a post message to your web server with all the payment details. You can then send a message back to Paypal to make sure that the payment was real...
There are even some code examples on paypal's website. Including one for PHP.
Note you have to enable IPN and define the call back URL in your paypal account before you can start using IPN.