Reply
Highlighted
Member
Posts: 2
Registered: ‎09-06-2011

GetTransactionDetails method

var gate = newAuthorizeNet.ReportingGateway("<loginid>", "<key>", AuthorizeNet.ServiceMode.Live); 

var details = gate.GetTransactionDetails(<transID>);

Response.Write(details.LineItems.Count.ToString());

 

The code above returns zero for all transaction ids.

 

Any idea?

Highlighted
Expert
Posts: 4,525
Registered: ‎03-08-2010

Re: GetTransactionDetails method

It work for me on 1.5.0 c# sample/SDK.

Are you sure your transactions have lineItem detail?

 

 

Highlighted
Member
Posts: 2
Registered: ‎09-06-2011

Re: GetTransactionDetails method

shouldn't every transaction have line items?

Highlighted
Expert
Posts: 4,525
Registered: ‎03-08-2010

Re: GetTransactionDetails method

It optional data. It there only if you set it when you create the transaction.