developer:soap:methods:getmerchantsummary

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
developer:soap:methods:getmerchantsummary [2008/02/13 08:51]
nell
developer:soap:methods:getmerchantsummary [2009/07/06 11:05]
epouchak
Line 1: Line 1:
-====== getMerchantSummary ======+<embed ..:​contents/>​====== getMerchantSummary ======
  
 **Reseller only method.** **Reseller only method.**
Line 17: Line 17:
 ===== Syntax ===== ===== Syntax =====
  
-[[developer:​soap:​objects:​MerchantSummaryObject]] **getMerchantSummary** ( [[developer:​soap:​objects:​ueSecurityToken]] Token, integer MerchantID, string Start, string End ) +[[..:​objects:​MerchantSummaryObject]] **getMerchantSummary** ( [[..:​objects:​ueSecurityToken]] Token, integer MerchantID, string Start, string End ) 
  
  
Line 23: Line 23:
  
 ^Type   ​^Name ​   ^Description ​   ^ ^Type   ​^Name ​   ^Description ​   ^
-|[[developer:​soap:​objects:​ueSecurityToken]] |Token |Reseller security token: used to identify reseller and validate request.|+|[[..:​objects:​ueSecurityToken]] |Token |Reseller security token: used to identify reseller and validate request.|
 |integer |MerchantID |Merchant ID number assigned by the gateway to an active merchant.| |integer |MerchantID |Merchant ID number assigned by the gateway to an active merchant.|
 |string |Start |Date for start of summary.| |string |Start |Date for start of summary.|
Line 32: Line 32:
 ===== Return Value ===== ===== Return Value =====
  
-|[[developer:​soap:​objects:​MerchantSummaryObject]] |Returns summary of merchant activity for specified time period. |+|[[..:​objects:​MerchantSummaryObject]] |Returns summary of merchant activity for specified time period. |
    
 ===== Examples ===== ===== Examples =====
Line 38: Line 38:
 ==== PHP ==== ==== PHP ====
  
-<code php> 
-<?​php ​ 
  
-// for directions on how to set up the   +For directions on how to set up the WSDL linkcreate "​$restoken"​ and "​$client"​, go to [[..:howto:php|PHP Soap How-to]]. 
-// WSDL link and create "​$restoken"​ and "​$client," ​ + 
-// see: http://​usaepay.com/​developer/​howto/php. +<code php> 
 +<?​php>​
  
 try {  try { 
                            
-   $MerchantID=2;​  +  ​$MerchantID=2;​  
-   ​$StartDate='​2007-01-01';​  +  $StartDate='​2007-01-01';​  
-   ​$EndDate='​2007-01-31'; ​+  $EndDate='​2007-01-31'; ​
                            
-   $res=$client->​getMerchantSummary($restoken,​ $MerchantID,​ $StartDate, $EndDate); ​+  ​$res=$client->​getMerchantSummary($restoken,​ $MerchantID,​ $StartDate, $EndDate); ​
                            
-   $this->​assertEquals($res->​MerchantID,​ $MerchantID); ​+  ​$this->​assertEquals($res->​MerchantID,​ $MerchantID); ​
  
-   $this->​assertTrue($res->​SalesCount>​1); ​+  ​$this->​assertTrue($res->​SalesCount>​1); ​
                                                    
-} catch (SoapFault $e) {  + 
-     ​echo $client->​__getLastRequest();​  + 
-     ​echo $client->​__getLastResponse();​  +catch (SoapFault $e) {  
-     ​die("​getMerchant failed: " .$e->​getMessage()); ​+  echo $client->​__getLastRequest();​  
 +  echo $client->​__getLastResponse();​  
 +  die("​getMerchant failed: " .$e->​getMessage()); ​
  
  
 ?>  ?> 
 </​code>​ </​code>​
-  
- 
developer/soap/methods/getmerchantsummary.txt · Last modified: 2009/07/06 11:05 by epouchak

Page Tools