7 replies [Last post]
binaryconstruct's picture
Offline
Joined: 03/22/2010
Juice: 21
Was this information Helpful?

I am having a problem getting PayPal IPNs from PayPal to my web host. Any order placed stays in "Pending" and the PayPal transaction ID is "unknown". I did some digging around in my PayPal IPN logs and they all look like this:

Message ID: *************
Date/time created: 3/22/2010 13:43 PDT
Original/Resent: Original
Latest delivery attempt date/time: 3/22/2010 13:46 PDT
Notification URL: http://www.*****.com/uc_paypal/ipn/1
HTTP response code: 403
Delivery status: Retrying
No. of retries: 5
Transaction ID: *************
IPN type: Transaction made

Is there some permissions I need to change in Drupal to allow PayPal to access /uc_paypal/ipn? (the 403 seems to indicate an access denied issue)

This is on a new Drupal install. I a clean only Drupal 6, ubercart 2 and the required modules to eliminated the possibility of interfering modules. I followed the setup guilds and reread several times to make sure I didn't miss anything. I have my return URL in paypal setup properly, and have tried both with IPN off in PayPal and with it On pointed to uc_paypal/ipn. I have tried both the release and dev builds of Ubercart. Also, my host is 1&1 but I would prefer solutions that didn't involve changing hosts.

Any help or suggestions will be appreciated.

Thanks,
Jeff

binaryconstruct's picture
Offline
Joined: 03/22/2010
Juice: 21
Re: PayPal IPN 403 - Order Status Pending

Here is what the 1&1 log looks like:

66.x.x.x- - [22/Mar/2010:02:18:12 -0400] "POST /uc_paypal/ipn/20 HTTP/1.0" 403 - www.*****.com "-" "-" "-"

Could this be related to clean urls and the rewrite rules in .htaccess?

binaryconstruct's picture
Offline
Joined: 03/22/2010
Juice: 21
Re: Re: PayPal IPN 403 - Order Status Pending

Seems it was a 1&1 issue. I never resolve it so I switch to site5, mirrored my site and everything works perfectly.

idcm's picture
Offline
Joined: 05/09/2010
Juice: 12
same issue but can't resolve

when u say you switched to site5, does that mean you switched to another hosting plan or another server? I am getting something similar. thoughts?

also, what is a 1&1?

==07e3893b==============================
Request: wshs80.com 66.211.170.66 - - [28/May/2010:11:48:08 --0400] "POST /uc_paypal/ipn/36 HTTP/1.0" 403 296 "-" "-" bvdd0n8AAAEAAF7ifaQAAAAA "-"
Handler: redirect-handler
----------------------------------------
POST /uc_paypal/ipn/36 HTTP/1.0
Content-Type: application/x-www-form-urlencoded
Host: mysite.com
Content-Length: 1036
mod_security-action: 403
mod_security-message: Access denied with code 403. Pattern match "^$" at HEADER("USER-AGENT") [id "1002"] [severity "EMERGENCY"]

HTTP/1.1 403 Forbidden
Content-Length: 296
Connection: close
Content-Type: text/html; charset=iso-8859-1
--07e3893b--

binaryconstruct's picture
Offline
Joined: 03/22/2010
Juice: 21
Re: same issue but can't resolve

1 & 1 is a hosting provider, and I switched to site5.com, which is another hosting provider (server).

You error looks similar, but you might make sure your mod_rewrite rules in your .htaccess file are set up properly .

yesct@drupal.org's picture
Offline
Uber Donor
Joined: 11/18/2008
Juice: 299
Re: same issue but can't resolve

where can I find that log on my system?

yesct@drupal.org's picture
Offline
Uber Donor
Joined: 11/18/2008
Juice: 299
Re: Re: same issue but can't resolve

I'd still like to know how to find that log...

but the trouble I was having I figured out.

I found this thread when I was having transactions stuck at pending.
In my case it was because I had secure site module asking for a username and password (it was a dev site we didn't want people looking at). Setting secure site to "never" require auth. allowed the information to trigger moving the order status to payment received.

acb
acb's picture
Offline
Joined: 12/06/2008
Juice: 161
Re: PayPal IPN 403 - Order Status Pending

I had the same problem and it involved one of my spam modules blocking paypal ipn access as suspicious...

FWIW...