Page 1 of 1

Pending orders automatically switching to Processing

Posted: Tue Aug 04, 2009 10:53 pm
by booksandtoys
Help!

I've just started getting orders with low order numbers come through via email. It looks like they're the orders which were never completed, but rather than disappearing from the database or whatever they're supposed to do, they're changing to live orders, complete with email to me and the customer, even though payment hasn't been made.

How can I fix this? I'm using 1.2.9, customers are paying via standard Paypal module.

Re: Pending orders automatically switching to Processing

Posted: Tue Aug 04, 2009 11:52 pm
by Qphoria
You have the store setting for order status set to Pending and the Paypal order status set to Processing?

Re: Pending orders automatically switching to Processing

Posted: Fri Aug 07, 2009 6:02 am
by paulsvang
Is there a manual somewhere where it states what the default should be in those boxes?

In paypal setting I have it as

Order Status: Processing (should it be processing or complete?)

Order Status pending: pending

Order Status Denied: Denied

Order Status Failed: Failed

..........

My concern is the Order Status?

Re: Pending orders automatically switching to Processing

Posted: Fri Aug 07, 2009 9:02 am
by Daniel
Does anyone think I should set paypal back to one order status?

Re: Pending orders automatically switching to Processing

Posted: Fri Aug 07, 2009 9:59 am
by Qphoria
Well i think the fact that the order statuses match their exact status seems moot.

Order status Failed = Failed
Order status Processing = Processing
Order status Canceled = Canceled
its redundant. What else would failed be? It would never be processing. Canceled would never be pending.

It made sense back when you had the Ajax confirm setting it to the store default.. which was usually "pending"
Pending means that the order was "in progress" but the final payment hasn't been confirmed.
Then the payment single entry for "final order status" would be set to "Processing" to alert the store owner that the order was ready to be processed and that payment was completed.

It was simple and effective.

The problem that most people had was that the email went out on the ajax confirm step. My personal opinion would be that the email shouldn't go out until the payment is confirmed to cut down on confusion.. but others might have other ideas.

I'd also recommend handling the client side return in the callback as well. This gives you redundant protection, so that even if the IPN failed, when the customer returned back to the store, it would process it anyway. Like a fallback. Just code it so that if its already confirmed, don't confirm it again.

Re: Pending orders automatically switching to Processing

Posted: Sat Aug 08, 2009 6:09 am
by paulsvang
LOL.

That makes sense. I've got it working. ;D