{"id":268,"date":"2009-05-10T23:39:09","date_gmt":"2009-05-10T18:09:09","guid":{"rendered":"http:\/\/www.bin-co.com\/blog\/?p=268"},"modified":"2009-05-10T23:39:09","modified_gmt":"2009-05-10T18:09:09","slug":"paypal-integration-ipns-notify_url-not-being-called","status":"publish","type":"post","link":"https:\/\/www.bin-co.com\/blog\/2009\/05\/paypal-integration-ipns-notify_url-not-being-called\/","title":{"rendered":"Paypal Integration: IPN&#8217;s notify_url Not Being Called"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.bin-co.com\/blog\/wp-content\/uploads\/2009\/05\/paypal_logo.gif\" alt=\"Paypal Logo\" title=\"Paypal Logo\" width=\"200\" height=\"50\" class=\"aligncenter size-full wp-image-270\" \/><\/p>\n<p class=\"intro\">I am working on a mini shopping cart plugin for WordPress with Paypal integration. Its been a while since I worked with paypal &#8211; so I ran into trouble. I have a couple of <a href=\"https:\/\/developer.paypal.com\/\">sandbox accounts<\/a> &#8211; and the <strong class=\"highlight\">payment goes through<\/strong> without any visible issues. But the <strong class=\"highlight\">IPN&#8217;s notify_url was not being called<\/strong> no matter what I did.<\/p>\n<p>And I was not the only guy with the problem &#8211; <a href=\"http:\/\/paypal.lithium.com\/pdn\/board\/message?board.id=ipn&amp;message.id=17717\">plenty<\/a> of <a href=\"http:\/\/www.pdncommunity.com\/pdn\/board\/message?board.id=sandbox&amp;thread.id=14272\">other<\/a> <a href=\"http:\/\/www.pdncommunity.com\/pdn\/board\/message?board.id=sandbox&amp;thread.id=10556\">people<\/a> have it too. I managed to solve the issue &#8211; but I decided to document the process &#8211; for the benefit of the people who fall into the same trap.<\/p>\n<h2>Make Sure the URL You Specified is Working<\/h2>\n<p>Yes, its obvious &#8211; but it needs to be said.<strong class=\"highlight\"> Make sure the URL you gave as the value of notify_url is a working URL<\/strong>. Sample usage&#8230;<\/p>\n<p>&lt;input type=&#8221;hidden&#8221; name=&#8221;notify_url&#8221; value=&#8221;http:\/\/www.yoursite.com\/cart\/ipn.php&#8221; \/&gt;<\/p>\n<p>Here &#8216;http:\/\/www.yoursite.com\/cart\/ipn.php&#8217; is the url &#8211; <strong class=\"highlight\">make sure it works<\/strong>! There is an easy way to <strong class=\"highlight\">test it &#8211; just go to <a href=\"http:\/\/www.belahost.com\/pp\/\">IPN Testing Environment<\/a> and enter your IPN notify_url<\/strong> there. When you submit the data, you&#8217;ll know wether the script is being called or not.<\/p>\n<h2>Verify the Email Address of Sandbox Account<\/h2>\n<p>When you make a sandbox account, you have to give a email address. But if you have selected a business account, make sure that you <strong class=\"highlight\">verify that email address<\/strong>. Just login using the given email and go to the home tab. There should be a <strong class=\"highlight\">&#8216;To do list&#8217;<\/strong> to the right side. Make sure you complete all the stuff(usually just 2) there&#8230;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.bin-co.com\/blog\/wp-content\/uploads\/2009\/05\/todo_paypal.png\" alt=\"Todo List Paypal\" title=\"Todo List Paypal\" width=\"475\" height=\"223\" class=\"aligncenter size-full wp-image-269\" \/><\/p>\n<p>When you confirm your email address &#8211; remember that its simulated &#8211; <strong class=\"highlight\">you don&#8217;t have to check the actual email account. Just go to the <a href=\"https:\/\/developer.paypal.com\/devscr?cmd=_email-session\">Test Email page in Paypal sandbox<\/a><\/strong> itself to check the mail.<\/p>\n<p>Once this is done, IPN notify_url worked for me. Hopefully, this will fix your issues as well.<\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"mh-excerpt\"><p>I am working on a mini shopping cart plugin for WordPress with Paypal integration. Its been a while since I worked with paypal &#8211; so I ran into trouble. I have a couple of <a href=\"https:\/\/developer.paypal.com\/\">sandbox accounts<\/a> &#8211; and the <strong class=\"highlight\">payment goes through<\/strong> without any visible issues. But the <strong class=\"highlight\">IPN&#8217;s notify_url was not being called<\/strong> no matter what I did.<\/p>\n<\/div>","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[18,27],"tags":[73,150,153,195,204,255,288],"class_list":["post-268","post","type-post","status-publish","format-standard","hentry","category-opinion","category-sites","tag-cart","tag-integration","tag-ipn","tag-notify_url","tag-paypal","tag-shopping","tag-troubleshooting"],"_links":{"self":[{"href":"https:\/\/www.bin-co.com\/blog\/wp-json\/wp\/v2\/posts\/268","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.bin-co.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.bin-co.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.bin-co.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bin-co.com\/blog\/wp-json\/wp\/v2\/comments?post=268"}],"version-history":[{"count":0,"href":"https:\/\/www.bin-co.com\/blog\/wp-json\/wp\/v2\/posts\/268\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.bin-co.com\/blog\/wp-json\/wp\/v2\/media?parent=268"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bin-co.com\/blog\/wp-json\/wp\/v2\/categories?post=268"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bin-co.com\/blog\/wp-json\/wp\/v2\/tags?post=268"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}