Solved

Paypal IPN Being Blocked/Not working in Production

Posted on 2013-06-24
4
349 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
  • 2
4 Comments
 
LVL 109

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to redirect our OWA exchange 2016 address 3 68
Fixing Old Legacy Code 1 36
Disable SSLv3.0/TLSv1.0 - Windows 2012R2 3 33
SSL Certificate for IIS7 Site 2 20
For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
How important is it to take extra precautions to protect your online business? These are some steps you can take to make sure you're free of any cyber crime.
This tutorial demonstrates a quick way of adding group price to multiple Magento products.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

777 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