Solved

Paypal IPN Being Blocked/Not working in Production

Posted on 2013-06-24
4
366 Views
Last Modified: 2016-03-24
I am trying to get Paypal IPN to work.  Everything seems to work fine in sandbox mode.  Information is being passed back by paypal and I am able to see the details.  When I switch the urls over to production.  I get nothing.  It doesn't even hit the server.  I see nothing in the IIS logs.  Just nothing.  I can confirm that the urls are correct, etc.   I have written my webhost to ask about blocked domains in the firewall, etc.

I just have no idea what else to look at

I am using Windows 2008.  Code does not work using coldfusion or php examples.
0
Comment
Question by:theideabulb
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 110

Expert Comment

by:Ray Paseur
ID: 39271906
The PayPal IPN script is an asynchronous script that is started by a POST-method request from PayPal when a payment is received.  Here are some ways to help debug it.

1. Check your PayPal set up to be sure that the URL of the IPN is exactly correct.
2. Since the IPN is unable to be started from the browser, you need some way to visualize the messages that it might issue.  Here is how I do that
2.a At the top of the script add error_reporting(E_ALL)
2.b Immediately after, add ob_start()
2.c At the logical end of the script, add something like this to capture the buffers and email the data to you.
$msg = ob_get_clean();
mail('You@Your.org', 'IPN Message', $msg);

Open in new window

3. Try starting the IPN from the web address bar.  It should fail, but at least you will be able to verify that there are no parse errors, and that the email can send you the diagnostic messages.
4. Go into the IPN script and add echo and var_dump() statements to visualize the data from PayPal.  The output of these statements will be sent to you in the email messages.

If you do all of that and it's still a no-show, recheck the PayPal settings in your account.
0
 
LVL 58

Expert Comment

by:Gary
ID: 39272068
Are you using your real credentials or the sandbox credentials - they are different (if I remember correctly)
0
 

Accepted Solution

by:
theideabulb earned 0 total points
ID: 39282241
I figured out that it as local to the domain.  It was a filter in the web.config that was blocking or doing something with paypal.  As soon as I removed some settings that didn't look like they were needed, it worked.
0
 

Author Closing Comment

by:theideabulb
ID: 39576157
I figured out exactly what it was
0

Featured Post

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

E-commerce is quite a gambling world, and you should never entrust your business to a lucky chance. In order to outrun your competitors in a race to attract as many customers as possible, you need to have a well thought-out strategy under your belt.…
Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
Viewers will get an overview of the benefits and risks of using Bitcoin to accept payments. What Bitcoin is: Legality: Risks: Benefits: Which businesses are best suited?: Other things you should know: How to get started:
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question