Solved

Paypal IPN Being Blocked/Not working in Production

Posted on 2013-06-24
4
343 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 108

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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Suggested Solutions

Often people are aiming at development of perfect Magento websites. Though, it is easier said than done. You know what’s much easier? To ruin everything. It can be done in seconds. Many of us experimented with design, tried to change some values dir…
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.…
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.
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…

759 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now