This method allows you to view a summary of a specific merchant's activity during a specified time period. The start and end dates that you set for the search are inclusive.
Use the MerchantID (unique merchant identification assigned by the gateway) to fine the merchant whose activity you would like to view.
Activity included in the search results include details about the number of sales, credits, voids, declines, errors, checks and check refunds.
See also addMerchantApplication, getMerchantApplicationStatus, getMerchant, updateMerchant, deleteMerchant, searchMerchants
For directions on how to set up the WSDL link, create “$restoken” and “$client”, go to PHP Soap How-to.
<?php>
try {
$MerchantID=2;
$StartDate='2007-01-01';
$EndDate='2007-01-31';
$res=$client->getMerchantSummary($restoken, $MerchantID, $StartDate, $EndDate);
$this->assertEquals($res->MerchantID, $MerchantID);
$this->assertTrue($res->SalesCount>1);
}
catch (SoapFault $e) {
echo $client->__getLastRequest();
echo $client->__getLastResponse();
die("getMerchant failed: " .$e->getMessage());
}
?>