We are having an issue getting a response back from Paypal that tells the site that orders have completed. The payments are charged and the Paypal emails are being sent out but Ubercart is not getting the message back from Paypal that the order is complete. Orders are forever in pending status.

Error in the log: IPN failed with HTTP error Connection refused, code -111.
Hostname: 173.0.81.1

We unblocked the following in the firewall:
23.203.150.242
# ipnpb.paypal.com
# Some ips for the above that may or may not be accurate:
64.4.248.8
64.4.249.8
173.0.84.40
173.0.84.8
173.0.88.40
173.0.88.8
173.0.92.8
173.0.93.8
173.0.81.1

api-3t.paypal.com
64.4.248.21
64.4.249.21
66.211.168.126
173.0.84.101
173.0.84.69
173.0.88.101
173.0.88.69
173.0.92.21
173.0.93.21

There are no longer any denied messages in the firewall.
173.0.81.1 - - [15/Jun/2016:14:42:07 -0400] "POST /uc_paypal/ipn/806 HTTP/1.1" 200 - "-" "PayPal IPN ( https://www.paypal.com/ipn )"

We tried orders with IPN on the Paypal side enabled and disabled, both result in the same error.

Any ideas on what could be wrong?

Comments

bcarraghan1 created an issue. See original summary.

TR’s picture

Priority: Major » Normal
Status: Active » Postponed (maintainer needs more info)
Issue tags: -paypal, -ipn

It appears you're receiving the IPN now that you configured your firewall properly, but that the IPN, It helps to turn on the payment debugging because then the IPN contents are logged to your watchdog. If you can't figure it out from inspecting the IPN contents you would have to step through uc_paypal_ipn() to see what is happening. If the IPN does not contain the "Completed" status, then the order status in Ubercart won't be changed. For instance, if you're configured to do just authorizations and not captures, you won't get a "Completed" IPN. Or if you have to manually accept the payment on the PayPal site. Or if the payment failed or was denied... You don't say whether you're using live or sandbox, but sandbox can be tricky to set up properly and this could certainly be a symptom of that.

TR’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)