Hi .. I have the following issue ..

Setup :D6 + UC + PP sandbox with auto return on.
Only products are file downloads.

Scenario 1:
A customer completes checkout and is taken to PayPal.
Log in .. complete payment .. wait and PP directs them back to a download page.

Scenario 2:
Same as above EXCEPT .. when completing payment, get taken to PP redirect page and click the 'click here to be redirected to site' BEFORE PP auto redirects. Still landing on download page.

The results in the order logs are different !? Different sequence and changes !? See below :

Scenario 1:
Tue, 2010-11-16 15:16 -
PayPal payment for £0.50 entered by -.
Tue, 2010-11-16 15:16 -
Order status changed from In checkout to Pending.
Tue, 2010-11-16 15:16 -
Order status changed from Pending to Completed.

Scenario 2:
Tue, 2010-11-16 15:23
User 34 Order status changed from In checkout to Pending.
Tue, 2010-11-16 15:23 -
PayPal payment for £1.00 entered by -.
Tue, 2010-11-16 15:23 -
Order status changed from Pending to Payment received.
Tue, 2010-11-16 15:23 -
Order status changed from Payment received to Completed.

I'm assuming that the IPN is getting screwed somewhere but not sure where .. it's obvioulsy a cause of the time the process is being given ?

Any clues ?

Thanks
G.

Comments

longwave’s picture

There is a race condition in the PayPal module between the IPN handling code and the user seeing the checkout completion page, which is unavoidable; depending on which request gets to your store first, you will see one of the two scenarios. But what is the actual problem here? Both orders are correctly being set as completed.

Gham’s picture

Hi thanks ..

It now of course makes sense it being a 'race condition'
The 'problem' has been spending hours understanding the erratic behaviour which involved setting Conditional Actions to cope with what seemed to be randomly generated scenarios.

Thanks for your response in highlighting this and if we therefore need to be able to cope with the differing IPN's .. we can at least compensate.

Not an ideal situation as you know .. but hey ho !

Thanks again

G.

longwave’s picture

Status: Active » Closed (works as designed)