Pulling the Payment Tansaction ID Value

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
vashts1980
Lieutenant Commander (LCDR)
Lieutenant Commander (LCDR)
Posts: 98
Joined: Fri Apr 29, 2011 2:56 pm

Pulling the Payment Tansaction ID Value

Post by vashts1980 » Mon Feb 27, 2012 10:09 am

As part of the integration project I'm working on, I need to pull the transaction ID number from the payments attached to each order. However, instead of the long value which I am trying to obtain, I keep getting a short four digit value. If anyone knows what to pull from the order information to get this value, it would be great to given a point in the right direction. I've included a screenshot of what I'm trying to pull.

Image

User avatar
david-ebt
Captain (CAPT)
Captain (CAPT)
Posts: 253
Joined: Fri Dec 31, 2010 10:12 am

Re: Pulling the Payment Tansaction ID Value

Post by david-ebt » Mon Feb 27, 2012 10:55 am

You're looking for the ProviderTransactionId in the ac_transactions table.

If you're working directly in the database, here's a query to pull that info based on ordernumber.

Code: Select all

select o.orderid, o.ordernumber, t.ProviderTransactionId, t.AuthorizationCode
from ac_orders o
 join ac_payments p on o.orderid = p.orderid
 join ac_transactions t on p.paymentid = t.paymentid
where o.OrderNumber = '77211'
If you're using the CommerceBuilder API, you'll need Order.Payments.Transactions
David
http://www.ecombuildertoday.com
Enhanced Reporting for AbleCommerce
Image

vashts1980
Lieutenant Commander (LCDR)
Lieutenant Commander (LCDR)
Posts: 98
Joined: Fri Apr 29, 2011 2:56 pm

Re: Pulling the Payment Tansaction ID Value

Post by vashts1980 » Mon Feb 27, 2012 11:08 am

Yes, I'm using the API in C#. And thank you for the info. My command now looks like..

Code: Select all

order.Payments[0].Transactions[0].ProviderTransactionId
I'll give that a try. I didn't think about treating Payments like an array.

Post Reply