Sometimes IPNs don't be received, and the customer has already paid successfully.
Their orders have as a state checkout_payment .

Those users when were trying to be returned to my store, after successful payment, they returned to checkout/[order_id] page with billing information .

None of my orders have IPNs logs .

I am using drupal 7.10
Commerce 7.1.1
Commerce Paypal 7.x.dev 2011-Nov-11

Comments

jras’s picture

Subbing...same issue

bkonetzny’s picture

Having the same issue here since a few days (around mid december). PayPal payments are successfully created, but there is no auto-redirect from PayPal back to the shop. Configuration in PayPal hasn't changed.
Any ideas?

itamair’s picture

aargghhh ... I am going to go online with Commerce Paypal ... but this issue sounds really bad.
And even worse that anybody took care of it yet.

benstallings’s picture

I can't guarantee that this will help anyone else, but in my case it turned out that I had IPN turned off at PayPal, because it had been my (mis)understanding that Ubercart and then Commerce turns on IPN for each transaction. This is not the case. IPN must be turned on at PayPal (Profile -> My Selling Tools -> Instant Payment Notifications), which means you must supply some default URL for the IPNs to be sent to. The URL I gave (after combing through the module for clues) was example.com/commerce_paypal/ipn . As soon as I did that, IPNs started working. I hope that this helps someone.

itamair’s picture

Thank you BenStallings !!! Still didn't go completely thorough, but I am almost to go online with Dcommerce and Paypal ... and this advice will be like gold (I guess ...) ;-)

itamair’s picture

Title: Sometimes IPNs don't be received » What is PayPal IPN? This link might be useful ...

What is PayPal IPN? This link might be useful ... to who, like me, didn't know so much:

https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=develo...

itamair’s picture

So which is the IPN Url to be provided to Pyapal? (referring to what said in #4)

Is it really the suggested: mysite.com/commerce_paypal/ipn
isn't it?

I didn't see any explanation of this in any Commerce Paypal documentation.
Quite strange ... isn't it?

itamair’s picture

this paypal link is the one to better focus on this matter:

https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=develo...

benstallings’s picture

Title: What is PayPal IPN? This link might be useful ... » Sometimes IPNs are not received

Changing the thread title back, since I think itamair changed it accidentally, and the original poster's question has not been resolved.

rszrama’s picture

Priority: Critical » Major

I'm operating this module in a live site, and every IPN has come in just fine. I'm demoting this in priority until we're assured there's actually an issue here. Think about it, though - every IPN is sent by PayPal, and there's nothing this module can do to change that. Go ahead and turn on logging in the payment method settings and see if you can glean any context information about when or why IPNs aren't being sent. Without being able to reproduce the issue, there's literally nothing for me to debug. : )

frost’s picture

UPDATE: I solved this - it was because I had my site in maintenance mode!

Using latest dev of both Commerce and Commerce Paypal

I'm also not getting my IPNs through. I'm testing on a live account because sandbox is a real pain!

My Paypal account is set up to send IPNs. I can see them queued up in my Paypal IPN history from all my tests - all of them say "Retrying".

The question about what url to use was never answered. Ryan, would you please confirm the IPN url should be in the format: http://www.mysite.com/commerce_paypal/ipn

In my tests, I am simulating a well-behaved customer who clicks to go back to the website after making payment on Paypal. The orders show no payments and its status remains unchanged

The only thing I see in my logs is
Type commerce_paypal_wps
Date Thursday, 22 March 2012 - 4:43am
User admin
Location http://www.***mysite***/checkout/18/payment/return/BWoR9JMZJx52kJFX3Naft...
Referrer
Message Customer returned from PayPal with the following POST data:

Array
(
)

Severity notice
Hostname ***some IP address***
Operations

I have everything else working and this site is supposed to go live, any suggestions what else I should try?

jantoine’s picture

I am seeing this issue in Firefox. When being redirected to the checkout/%oid/complete URL, I am receiving the following warning:

Although this page is encrypted, the information you have entered is to be sent over an unencrypted connection and could easily be read by a third party.

Are you sure you want to continue sending this information?

I am guessing that PayPal is trying to send the data via HTTPS, but because my site is not in HTTPS mode, Firefox is rejecting the data. Even if I click the "Continue" button, the data array in my log is still empty. I am not seeing this issue in Google Chrome. I have not tried other browsers. I have not run my site in HTTPS mode to confirm it works in Firefox.

rszrama’s picture

Status: Active » Closed (cannot reproduce)

I can confirm that you should not be configuring IPN at all in your PayPal account unless you're using a module that requires it. For PayPal WPS transactions, the fact that we submit a notify_url in the form is all that PayPal needs to send the proper IPNs even if your general IPN setting is disabled. I've had a live site functioning just fine for almost a year now whose IPN settings are disabled in its PayPal profile. I just reconfirmed this in the IPN documentation.

If you're missing POST data on the return from PayPal because of the browser issue, then I think the only thing for it would be to enable HTTPS on your return page. I can reproduce the behavior with Firefox, but frankly it shouldn't matter... the message shows, I click continue, and I see the checkout completion page just fine. The thing is this module doesn't actually do anything with the POST unless it gets one and the POST explicitly says the payment failed. Otherwise we wait until we actually get the IPN from PayPal to create transactions / update the order locally.

If there's follow-up info to this issue, let's post it in the duplicate #1055390: Invalid notify_url - basically, until someone can reliably create an environment locally and give us the steps to do the same or create a public environment with problems that can be shared out, there's nothing we can do to debug this further.