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
Last revision Both sides next revision
developer:soap:methods:getmerchantsummary [2008/02/13 08:51]
nell
developer:soap:methods:getmerchantsummary [2009/01/19 15:34]
hmcgowan
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 [[developer:soap:howto:php|PHP Soap How-to]]. 
-// WSDL link and create "​$restoken"​ and "​$client," ​ + 
-// seehttp://​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