Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Paypal IPN : notify_url not called

I'm testing a simple paypal paying script whisch works fine except that it's not calling my notify_url and I don't understand why. The url is reachable and even the sandbox IPN testing gives a positive result. Even stranger, on the same domain I have an other script that is working briliantly. Code is not identical, but it's using the same method.

This is the html of the form used to send paymento to Paypal:

form id="ppcheckout" action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post" name="pp">
  <input type="hidden" value="_xclick" name="cmd">
  <input id="business" type="hidden" value="[email protected]" name="business">
  <input id="currency_code" type="hidden" value="EUR" name="currency_code">
  <input type="hidden" value="http://www.mydomain.com/dir/ipn.php" name="notify_url">
  <input id="return" type="hidden" value="http://www.mydomain.com/dir/" name="return">
  <input id="cancel_return" type="hidden" value="http://www.mydomain.com/dir/" name="cancel_return">
  <input type="hidden" value="1" name="amount">
  <input type="hidden" value="Order from mysite" name="item_name">
  <input type="hidden" value="1" name="invoice">
</form>

Can't realy figure out what's wrong or missing. Does someone have an idea?

Thanks Bye

like image 458
rpravisani Avatar asked Aug 27 '12 17:08

rpravisani


3 Answers

I hope you are not testing paypal on LOCALHOST. That wont work, you need to test it online, in a web server, you can code using localhost but have to upload it to the SERVER so as to test it completely.

Here is a link that might help in configuring paypal - How to Set Up PayPal Integration with PHP & MySQL

like image 61
Knights Avatar answered Oct 12 '22 02:10

Knights


You need to edit the Instant Payment Notification (IPN) settings in your PayPal Sandbox business account.

  1. Log into Sandbox business account.
  2. Go to the Profile page and click on Instant Payment Notification preferences link.
  3. Set Notification URL and enable the IPN message.

Full tutorial can be found from here - PayPal IPN / Notify URL is not working on Sandbox Account

like image 29
JoyGuru Avatar answered Oct 12 '22 00:10

JoyGuru


Have you verified your sandbox account's email?

This link sounds similar to your problem, and that fixed it for him.

like image 45
WildJoe Avatar answered Oct 12 '22 02:10

WildJoe