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
Next revision
Previous revision
developer:soap:methods:getmerchantapplicationstatus [2008/02/13 08:25]
nell
developer:soap:methods:getmerchantapplicationstatus [2009/07/06 10:47]
epouchak
Line 1: Line 1:
-====== getMerchantApplicationStatus ======+<embed ..:​contents/>​====== getMerchantApplicationStatus ======
  
 **Reseller only method.** **Reseller only method.**
Line 25: Line 25:
 ===== Syntax ===== ===== Syntax =====
  
-string **getMerchantApplicationStatus** ( [[developer:​soap:​objects:​ueSecurityToken]] Token, integer ApplicationID ) +string **getMerchantApplicationStatus** ( [[..:​objects:​ueSecurityToken]] Token, integer ApplicationID ) 
  
  
Line 31: Line 31:
  
 ^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 |ApplicationID |The merchant application number assigned by the gateway. | |integer |ApplicationID |The merchant application number assigned by the gateway. |
  
Line 43: Line 43:
  
 ==== PHP ==== ==== PHP ====
 +
 +For directions on how to set up the WSDL link, create "​$token"​ and "​$client",​ go to [[..:​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