View Full Version : find out if PayPal payment went through ok or not so can store 'paid' in mysql.

12-13-2010, 01:35 AM
I have a payment button for PayPal which securely stores the amount, but when the payment is made how do i know if it was paid or not so i can get the page to store this in the mysql database?

12-13-2010, 01:41 AM
You utilize the PHP / PayPal IPN feature.

This is a bit different than using a PayPal button that you created with PayPal.

There is a free paypal testing site you MUST use to not only learn how to use IPN,
but to test it out. Probably the most valuable paypal feature/service they offer:

You sign up for free. Lots of PHP script examples. You use it to test your site.
When everything is working good, you switch your site over to your REAL PayPal account.