developer:soap:methods:getmerchantapplicationstatus

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:getmerchantapplicationstatus [2008/02/13 08:25]
nell
developer:soap:methods:getmerchantapplicationstatus [2009/01/19 14:33]
hmcgowan
Line 43: Line 43:
  
 ==== PHP ==== ==== PHP ====
 +
 +For directions on how to set up the WSDL link, create "​$token"​ and "​$client",​ go to [[developer:​soap:​howto:​php|PHP Soap How-to]].
  
 <code php> <code php>
 <?​php ​ <?​php ​
  
-// for directions on how to set up the  ​ 
-// WSDL link and create "​$restoken"​ and "​$client," ​ 
-// see: http://​usaepay.com/​developer/​howto/​php. ​ 
 try {  try { 
  
-   $ApplicationID=2; ​+  ​$ApplicationID=2; ​
  
-   $res=$client->​getMerchantApplicationStatus($restoken,​ $ApplicationID); ​+  ​$res=$client->​getMerchantApplicationStatus($restoken,​ $ApplicationID); ​
  
-   $this->​assertEquals($res->​MerchID,​ $ApplicationID); ​+  ​$this->​assertEquals($res->​MerchID,​ $ApplicationID); ​
  
-   $this->​assertEquals($res->​Zip,​ '​12311'​); ​+  ​$this->​assertEquals($res->​Zip,​ '​12311'​); ​
                                                    
-} catch (SoapFault $e) {  + 
-     ​echo $client->​__getLastRequest();​  + 
-     ​echo $client->​__getLastResponse();​  +catch (SoapFault $e) {  
-     ​die("​getMerchantApplicationStatus failed: " .$e->​getMessage()); ​+ 
 +  ​echo $client->​__getLastRequest();​  
 +  echo $client->​__getLastResponse();​  
 +  die("​getMerchantApplicationStatus failed: " .$e->​getMessage()); ​ 
  
  
 ?>  ?> 
 </​code>​ </​code>​
developer/soap/methods/getmerchantapplicationstatus.txt · Last modified: 2009/07/06 10:47 by epouchak

Page Tools