Solved

Paypal IPN Being Blocked/Not working in Production

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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Web site error 3 50
coldfusion upload spreadsheet into the databse 2 58
echo paypal data on screen 5 119
Magento: different theme for Pc and for mobile devices 4 71
For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
3 proven steps to speed up Magento powered sites. The article focus is on optimizing time to first byte (TTFB), full page caching and configuring server for optimal performance.
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…

762 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