Reply
Highlighted
Contributor
Posts: 18
Registered: ‎07-14-2014
Accepted Solution

Downloading Line Items

We can pull transaction details using AuthorizeNetTD, but these do not include the line items (itemized).

 

How are these downloaded?


Accepted Solutions
Highlighted
Solution
Accepted by topic author foundation406
‎08-21-2015 01:58 AM
Expert
Posts: 4,525
Registered: ‎03-08-2010

Re: Downloading Line Items

Which methods did you use to get the transaction? lineitems only return in getTransactionDetails method

View solution in original post


All Replies
Highlighted
Solution
Accepted by topic author foundation406
‎08-21-2015 01:58 AM
Expert
Posts: 4,525
Registered: ‎03-08-2010

Re: Downloading Line Items

Which methods did you use to get the transaction? lineitems only return in getTransactionDetails method

Highlighted
Contributor
Posts: 18
Registered: ‎07-14-2014

Re: Downloading Line Items

With the goal of producing a csv data file (not even close yet), we are calling:

Using require_once "/anet_php_sdk/AuthorizeNet.php";

 

//'TRANSACTIONS FOR DAY;
$request = new AuthorizeNetTD;
$response = $request->getTransactionsForDay(10,08,2014); //MM,DD,YYYY

 

Getting the transactions for the day, I'm guessing I would load transactionIDs into an array and loop through itehm using getTransactionDetails

 

//'TRANSACTION DETAILS<br>';
$transId = '6559957920';
$response = $request->getTransactionDetails($transId);
print_r($response);

 

I now see the line item details.  Thanks!

 

What I need to do now is loop through (the XML?) and create a data file, pulling out specific fields.  Would you happen to know where some sample code is?  I've not worked too much with XML.  Our goal is to just produce a data file by running this PHP page.