developer:soap:methods:getmerchant

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:getmerchant [2008/02/13 08:29]
nell
developer:soap:methods:getmerchant [2009/07/06 10:50]
epouchak
Line 1: Line 1:
-====== getMerchant ======+<embed ..:​contents/>​====== getMerchant ======
  
 **Reseller only method.** **Reseller only method.**
Line 15: Line 15:
 ===== Syntax ===== ===== Syntax =====
  
-[[developer:​soap:​objects:​MerchantObject]] **getMerchant** ( [[developer:​soap:​objects:​ueSecurityToken]] Token, integer MerchantID ) +[[..:​objects:​MerchantObject]] **getMerchant** ( [[..:​objects:​ueSecurityToken]] Token, integer MerchantID ) 
  
  
Line 21: Line 21:
  
 ^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 |
  
Line 28: Line 28:
 ===== Return Value ===== ===== Return Value =====
  
-|[[developer:​soap:​objects:​MerchantObject]] |Returns merchant account information including: ID, Company, Contact, Address, Email, Phone, and Fax. |+|[[..:​objects:​MerchantObject]] |Returns merchant account information including: ID, Company, Contact, Address, Email, Phone, and Fax. |
  
 ===== Examples ===== ===== Examples =====
 +
  
 ==== 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 { 
  
-   $MerchantID=2; ​+  ​$MerchantID=2; ​
  
-   $res=$client->​getMerchant($restoken,​ $MerchantID); ​+  ​$res=$client->​getMerchant($restoken,​ $MerchantID); ​
  
-   $this->​assertEquals($res->​MerchID,​ $MerchantID); ​+  ​$this->​assertEquals($res->​MerchID,​ $MerchantID); ​
  
-   $this->​assertEquals($res->​Zip,​ '​12311'​); ​+  ​$this->​assertEquals($res->​Zip,​ '​12311'​); ​
                                                    
-} catch (SoapFault $e) {  
-     echo $client->​__getLastRequest(); ​ 
-     echo $client->​__getLastResponse(); ​ 
-     ​die("​getMerchant failed: " .$e->​getMessage()); ​ 
  
 +
 +catch (SoapFault $e) { 
 +
 +  echo $client->​__getLastRequest(); ​
 +  echo $client->​__getLastResponse(); ​
 +  die("​getMerchant failed: " .$e->​getMessage()); ​
 +  } 
  
 ?>  ?> 
developer/soap/methods/getmerchant.txt · Last modified: 2009/07/06 10:50 by epouchak

Page Tools