Pay Pal Standard, IPN: orders stuck in 'Pending'

Posts: 15
Joined: 11/19/2007
Bug Finder

-w Drupal5.3, Ubercart alpha8 + latest relevant modules from bazaar

Orders proceed through checkout, payments via paypal standard checkout proceed to Paypal, where payments get made, then users return to the site. The problem is the order's order_status_id stay 'pending'.

My hypothesis is that my site isn't getting the Instant Payment Notification, or my site isn't dealing with them properly when they come.

I've tried turning IPN on in the merchant paypal account setting, w not return URL. No luck. I've tried turning it off. No luck. I've tried setting up workflow-ng s to alter the orders status when payment gets processed. no luck. So ... my question is ... am I missing something here? Or is this a bug that other's are experiencing also.

Posts: 1139
Joined: 08/14/2007
Bug FinderEarly adopter... addicted to alphas.Getting busy with the Ubercode.

I haven't gotten the most recent code but I think that status update line was removed. Does your Wf-ng config involve just "on checkout" condition being checked?

My configuration is like so:

When an order is updated
- Condition: Check balance - less than or equal to zero?
- Action: Update to Completed

And that seems to work. Since the IPN can come in AFTER the checkout process has completed, that seems to be where the config is lacking. Not all payments are received at Checkout Completion; usually there is a slight delay coming from PayPal (sometimes even a LONG delay).

I've suggested, I think in the past, a new WF-ng config for "When an IPN notification is received." But that may not be necessary.

--

"Pain don't hurt." - Dalton

Mike Nelson's RiffTrax! www.rifftrax.com

Posts: 4368
Joined: 08/07/2007
AdministratorHead Code Monkey - I eat bugs.

Yep, this has been changed recently... IPN no longer adjusts order status itself, but likewise I have provided a default workflow configuration that functions as the one TP described. It just has to be enabled. Smiling

Posts: 1139
Joined: 08/14/2007
Bug FinderEarly adopter... addicted to alphas.Getting busy with the Ubercode.

Nice! I will have to update my code. Been entrenched in new content and module creation that I haven't been able to bzr update in a while. I'll have to soon... maybe when we hit another lull Smiling

--

"Pain don't hurt." - Dalton

Mike Nelson's RiffTrax! www.rifftrax.com

Posts: 15
Joined: 11/19/2007
Bug Finder

What is this default workflow configuration called, and where do I find it?
... n/m ... i found it in the bazaar. how about that.

Danke Shcöne!

Posts: 15
Joined: 11/19/2007
Bug Finder

Does the IPN have to be activated at the merchant's PayPal Profile? Do we have to provide a URL? If so, what's the URL we have to provide? I've heard conflicting things about this.

Posts: 4368
Joined: 08/07/2007
AdministratorHead Code Monkey - I eat bugs.

What I've done on my test site is enabled IPN and emptied out the URL field altogether. This would be my recommendation at the moment.

Posts: 143
Joined: 10/08/2007
Bug FinderGetting busy with the Ubercode.PayPal Hero

And then this bug will still keep many of your ipn orders at pending:

http://www.ubercart.org/forum/support/2104/ipn_woes_payment_status_gets_...

Posts: 9
Joined: 05/09/2008

I have the same problem, I've resolve this problem by this
first enable this workflow: Active this workflow --Update order status on full payment
then click the workflow link, and change the Condition and Action of it:
- Condition: Check balance - less than or equal to zero?(default to be so)
- Action: Update to Completed(need to be set to completed)

Posts: 16
Joined: 08/17/2007

I am seeing the same things on my site and will test the 'completed' setting in the update order status of the workflow-ng.

But it makes more sense to me to set it to 'payment received'. Assuming the 'completed' setting works, is there a way to get this to work with the other settings?

Posts: 16
Joined: 08/17/2007

I am seeing the same things on my site and will test the 'completed' setting in the update order status of the workflow-ng.

But it makes more sense to me to set it to 'payment received'. Assuming the 'completed' setting works, is there a way to get this to work with the other settings?