Sending Itemized order information to Authorize.net

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
MMIKAL
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 32
Joined: Thu Mar 11, 2010 9:30 am

Sending Itemized order information to Authorize.net

Post by MMIKAL » Thu Jun 24, 2010 11:23 pm

Hi

I was wondering if any of you guys have tried to send Itemized order information to Authorize.net.
In our existing site, the admin panel in Authorize.net shows itemized orther information which is sent along the transaction,
so for each transction, besides the order number, it also shows the SKU, Qty and product name.

Any tip is on how to tackle it is highly appriciated.

User avatar
Kalamazoo
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 42
Joined: Wed Apr 01, 2009 6:10 pm

Re: Sending Itemized order information to Authorize.net

Post by Kalamazoo » Fri Jun 25, 2010 11:56 am

Hi MMIKAL,

We have used this spec from authorize.net to work from: (I don't know if this will help at all)

Code: Select all

SKU <|>  Name <|>  Option (additional info) <|> Quantity <|> Price <|> Taxable (0 or 1) for each line item. Authorize.net accepts lengths up to 30...cannot go over...SKU - 30 chars, Name - 30 chars
All the best,

Phil

MMIKAL
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 32
Joined: Thu Mar 11, 2010 9:30 am

Re: Sending Itemized order information to Authorize.net

Post by MMIKAL » Fri Jun 25, 2010 12:42 pm

Hi Phil

Thanks for your reply.
That is exactly what I want, but honestly I do not know where to put it. I can not find it on the Authorize.net panel in AC.

Thank you in advance.

User avatar
jmestep
AbleCommerce Angel
Posts: 8164
Joined: Sun Feb 29, 2004 8:04 pm
Location: Dayton, OH
Contact:

Re: Sending Itemized order information to Authorize.net

Post by jmestep » Sat Jun 26, 2010 7:05 am

You would have to modify the Authorize.net source code.
Here is a link to the wiki about it, with a link at the bottom to download the source code:
http://wiki.ablecommerce.com/index.php/ ... nt_Gateway

Basically, what you would need to do would be to add a section called something like

Code: Select all

 private string BuildGatewayRequestPart_OrderItemData(Order order)
{
...
}
Then you would need to add your method to
BuildGatewayRequest_Authorize section

Then compile it and replace the default dll in the Bin folder with your version.


Or you might be able to add it to this section which sends some of the orderitem data

Code: Select all

private string BuildGatewayRequestPart_Level2Data(Order order)
        {
            if (order != null)
            {
                decimal taxAmount = (decimal)order.Items.TotalPrice(OrderItemType.Tax);
                decimal shippingAmount = (decimal)order.Items.TotalPrice(OrderItemType.Shipping, OrderItemType.Handling);
                return "&x_tax=" + taxAmount.ToString("F2") + "&x_freight=" + shippingAmount.ToString("F2");
            }
            return string.Empty;
        }
Judy Estep
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx

MMIKAL
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 32
Joined: Thu Mar 11, 2010 9:30 am

Re: Sending Itemized order information to Authorize.net

Post by MMIKAL » Sat Jun 26, 2010 11:55 am

Thanks Judy, Phil, I will give it a try.

User avatar
Kalamazoo
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 42
Joined: Wed Apr 01, 2009 6:10 pm

Re: Sending Itemized order information to Authorize.net

Post by Kalamazoo » Tue Jul 06, 2010 2:38 pm

MMikal,

Let me know how it works out for you.

Phil Chrisman

MMIKAL
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 32
Joined: Thu Mar 11, 2010 9:30 am

Re: Sending Itemized order information to Authorize.net

Post by MMIKAL » Wed Jul 07, 2010 5:54 pm

Hi Phil, Not yet, Busy with other stuff, will look at it soon. Thanks

Post Reply