WAMP not seeing Paypal Sandbox IPN messages
Posted by: arnb (---.dyn.optonline.net)
Date: March 08, 2010 02:15AM

Need help getting Paypal Sandbox Instant Payment Notification messages to process with WAMP. They work if they are processed on my web host with a rudimentary script, however I want to develop my code with my WAMP test system.

The configuration:
Router DLNK DIR-625 attached to cable modem, OS Windows 7 Home Premium(all updates) running Wamp 2.2.11, with PHP version 5.3.1

In the router I have opened an forwarded Port 80 to my local Machine running WAMP with an allow filter for the Paypal Sandbox IP 216.113.191.33 only, other Ip addresses are blocked for unsolicited messages

Prior to activating Port Fowarding with the filter, the DLNK Log showed the requests being blocked. Now there are no longer any blocking errors in the log from 216.113.191.33, but the Apache log shows no access from Paypal (or any other outside IP's) and all IPN transactions show as failed in the Paypal history log

Wamp is running in Online Mode

Paypal Sandbox IPN process address is set to nnn.nnn.nnn.nnn/xxx/paypal/ipn_pcs.php
where nnn.nnn.nnn.nnn is the address of the router's WAN IP address with my ISP.
where xxx is the application directory in the www directory. Changing nnn.nnn.nnn.nnn to Localhost fires off the script without errors.


Thank you for reading this message and for any suggestions you may have.


Arn

Options: ReplyQuote
Re: WAMP not seeing Paypal Sandbox IPN messages
Posted by: arnb (---.dyn.optonline.net)
Date: March 08, 2010 09:02PM

Updated settings shown below without success.

In Windows 7 Firewall inbound program rules for programs C:\wamp\bin\apache\Apache2.2.11\bin\httpd.exe and C:\wamp\wampmanager.exe

Modified httpd.conf
#
# Controls who can get stuff from this server.
#

# onlineoffline tag - don't remove
Order Deny,Allow
# Deny from all
Allow from all
# Allow from 127.0.0.1

Enabled Windows 7 Firewall negative trace log, nothing showed up. Looking like the message is getting lost in the router.

Suggestions?



Edited 1 time(s). Last edit at 03/08/2010 10:58PM by arnb.

Options: ReplyQuote
Re: WAMP not seeing Paypal Sandbox IPN messages
Posted by: arnb (---.dyn.optonline.net)
Date: March 09, 2010 09:13PM

Found the problem:
My ISP is blocking port 80 (sigh)

Options: ReplyQuote
Re: WAMP not seeing Paypal Sandbox IPN messages
Posted by: yfastud (Moderator)
Date: March 10, 2010 02:05AM

through wamp tray icon, open file httpd.conf and find:

listen 80

Change to:

listen 8181

from now, you have to use 'http://localhost:8181'

Have fun,

FREE One A Day
FREE Photo
FREE Games
FREE Websites
FREE Portable GPS
FREE WAMP Guides

Options: ReplyQuote
Re: WAMP not seeing Paypal Sandbox IPN messages
Posted by: arnb (---.dyn.optonline.net)
Date: March 10, 2010 05:04AM

Thank you for the suggestion, I successfully used something similar using my router to get around my ISP's port blocking as follows:

1. Set the Paypal processing IP to nnn.nnn.nnn.nnn:8181/xxx/paypal/ipn_pcs.php

2. Setup a router rule allowing port 8181 from Paypal Sandbox sending the message to my local machine at port 80.

BTW 8181 can be any port not blocked by the ISP.

Options: ReplyQuote
Re: WAMP not seeing Paypal Sandbox IPN messages
Posted by: yfastud (Moderator)
Date: March 10, 2010 11:26PM

Quote

BTW 8181 can be any port not blocked by the ISP.
yep but 80, 81, 8080, 8181 are common uses for web and most isp might bock port 80 and/or 81

Have fun,

FREE One A Day
FREE Photo
FREE Games
FREE Websites
FREE Portable GPS
FREE WAMP Guides

Options: ReplyQuote
Re: WAMP not seeing Paypal Sandbox IPN messages
Posted by: arnb (---.dyn.optonline.net)
Date: March 10, 2010 11:39PM

Yes, my ISP blocks all of those and a few more, however for whatever reason they don't block 443 (HTTPS/SSL) and I found that Paypal will only respond on ports 80 or 443, so I went with 443, reset the router to route Paypal requests on port 443 to my local wamp machine at 80, and I am now able to test.

Options: ReplyQuote
Re: WAMP not seeing Paypal Sandbox IPN messages
Posted by: yfastud (Moderator)
Date: March 10, 2010 11:44PM

port 443 is used for ssl and you should setup https/ssl for your security to use paypal


to setup ssl, follow this
[blog.jlbn.net]

Have fun,

FREE One A Day
FREE Photo
FREE Games
FREE Websites
FREE Portable GPS
FREE WAMP Guides

Options: ReplyQuote
Re: WAMP not seeing Paypal Sandbox IPN messages
Posted by: brc2000 (---.dyn.optonline.net)
Date: November 26, 2013 05:33PM

"reset the router to route Paypal requests on port 443 to my local wamp machine at 80"

an old thread, i realize, but facing this issue right now. can you please explain step-by-step how to do the above?

Options: ReplyQuote


Sorry, only registered users may post in this forum.