PaymentStatusId in ac_Orders table - Important

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
Mike718NY
Commodore (COMO)
Commodore (COMO)
Posts: 485
Joined: Wed Jun 18, 2008 5:24 pm

PaymentStatusId in ac_Orders table - Important

Post by Mike718NY » Tue Sep 22, 2009 7:58 am

I really need to know exactly how the
"PaymentStatusId" tinyint field in the ac_Orders table works.

It seems to be either a value of 1 or 2, with 2 being a "Paid" status.

Is it safe to say that "Value = 2" is Paid and all other values equal Not Paid?

It is very important that I get exactly what is going on with this field. Thanks

User avatar
AbleMods
Master Yoda
Master Yoda
Posts: 5170
Joined: Wed Sep 26, 2007 5:47 am
Location: Fort Myers, Florida USA

Re: PaymentStatusId in ac_Orders table - Important

Post by AbleMods » Tue Sep 22, 2009 8:22 am

The Able documentation is incomplete and does not list the numerics involved. But you can find this in the CHM compiled help file http://wiki.ablecommerce.com/index.php/ ... uilder_API:
Member Description
Unspecified
Order Payment status is unspecified.

Unpaid
Order Payment status is unpaid.

Paid
Order Payment status is paid.

Problem
Order Payment has some problem.
Joe Payne
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com

Mike718NY
Commodore (COMO)
Commodore (COMO)
Posts: 485
Joined: Wed Jun 18, 2008 5:24 pm

Re: PaymentStatusId in ac_Orders table - Important

Post by Mike718NY » Tue Sep 22, 2009 1:57 pm

From looking at a AC7 site that has been up for a year, the
PaymentStatusId in the orders table has this in it:

PaymentStatusId -- Count
--- 1 -------------- 125
--- 2 -------------- 4192
--- 3 -------------- 12

I think the "3" happens when there is a Capture Failed or Authorization Failed.

So I guess it's safe to say that: "2" is Paid, . . which is what I need to know.

afm
Captain (CAPT)
Captain (CAPT)
Posts: 339
Joined: Thu Nov 03, 2005 11:52 pm
Location: Portland, OR
Contact:

Re: PaymentStatusId in ac_Orders table - Important

Post by afm » Tue Sep 22, 2009 3:13 pm

AuthorizationFailed = 3
AuthorizationPending = 1
Authorized = 2
Captured = 5
CaptureFailed = 6
CapturePending = 4
Completed = 11
Refunded = 8
RefundPending = 7
Unprocessed = 0
Void = 10
VoidPending = 9
Andy Miller
Structured Solutions

Shipper 3 - High Velocity Shipment Processing

User avatar
Logan Rhodehamel
Developer
Developer
Posts: 4116
Joined: Wed Dec 10, 2003 5:26 pm

Re: PaymentStatusId in ac_Orders table - Important

Post by Logan Rhodehamel » Tue Sep 22, 2009 6:10 pm

Most of the additional statuses that seem unused are only employed by asynchronous payment processors. Gateways like PayPal and Google Checkout - where notifications about the payment may come in multiple phases over a period of time. For example, say your customer uses the PayPal site to pay via electronic check. AbleCommerce gets a payment pending notification, then later (perhaps as much as a week) we'll get another notification about the result of the check clearing.
Cheers,
Logan
Image.com

If I do not respond to an unsolicited private message, it's not because I'm ignoring you. It's because the answer to your question is valuable to others. Try the new topic button.

Post Reply