Forum Moderators: buckworks
This is a long shot but here goes.
I have been setting up a script that uses Paypals IPN. Whats happening is that when I click a "Buy Now" button, the payment processes ok, and then the thank you page is displayed, but no e-mails get sent and nothing logs in my database.
At first I figured the script was the problem, but I have now downloaded 3 seperate scripts (dotwidget $30, eDelivery $20, ipnm - free) and the same thing happens with all 3. I even downloaded the PHP developers toolkit from the Paypal site and thats exactly the same.
I have got IPN on and I have got a premium account. I`ve also spent hours going through the info on the Paypal site, but I just can`t seem to get it to work. The developers tool kit has some kind of debugging thing, but that doesn`t seem to work either.
So, as a request is sent to my server, could there be something that is stopping the logging from taking place? Has anyone else had this problem?
Thank you!
Perhaps the server you're running the script from isn't logging in to the database properly, or something you're trying to INSERT into the database is the wrong field type or general syntax error. Troubleshoot it by sending the same parameters PayPal sends to the script yourself through your web browser. If you're not sure what they are, remove the script that's there and set one up that does nothing but e-mail you all form POST and querystring data received, then do a test transaction. You'll get an e-mail with a copy of everything PayPal sent to you.
Now you can use that information to test the script and see where it's failing.
[edited by: digitalv at 5:39 pm (utc) on July 27, 2004]
1) You cannot make external connections to third party websites outside of the server, as this is blocked to prevent outbound attacks. We however have several customers who use other scripts/methods such as passback parameters which work perfectly.
2) All scripts have this ability.
So, whats that all about?
You cannot make external connections to third party websites outside of the server, as this is blocked to prevent outbound attacks. We however have several customers who use other scripts/methods such as passback parameters which work perfectly
It means their web server can't surf the web. It can receive a POST from PayPal, but it can't make one back to them (as their IPN requires for confirmation). This is kind of a tough call - finding a host that has given as much consideration to security as your present host is rare and switching from them to a less secure host would be a bad idea, however it would be necessary to make your PayPal IPN work due to the talk-back requirements.
Perhaps your host could be convinced to allow posts to PayPal through the firewall? This could add value to their service because not only could customers use the IPN, but they would basically guarantee that they were ONLY posting to PayPal and not another site via trickery.