developer:soap-1.2:methods:getmerchant

Differences

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

Link to this comparison view

developer:soap-1.2:methods:getmerchant [2010/02/12 11:48] (current)
hmcgowan created
Line 1: Line 1:
 +<embed ..:​contents/>​====== getMerchant ======
  
 +**Reseller only method.**
 +
 +Retrieve details of a merchant'​s account.
 +
 +===== Description =====
 +
 +This method pulls the account information for an active merchant.
 +
 +Information accessible through this method includes merchant ID (assigned by the gateway), merchant company, contact person, address, email and telephone number.
 +
 +See also [[addMerchantApplication]],​ [[getMerchantApplicationStatus]],​ [[updateMerchant]],​ [[deleteMerchant]],​ [[searchMerchants]],​ [[getMerchantSummary]] ​
 +
 +===== Syntax =====
 +
 +[[..:​objects:​MerchantObject]] **getMerchant** ( [[..:​objects:​ueSecurityToken]] Token, integer MerchantID ) 
 +
 +
 +===== Arguments =====
 +
 +^Type     ​^Name ​   ^Description ​   ^
 +|[[..:​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 |
 +
 +
 +
 +===== Return Value =====
 +
 +|[[..:​objects:​MerchantObject]] |Returns merchant account information including: ID, Company, Contact, Address, Email, Phone, and Fax. |
 +
 +===== Examples =====
 +
 +
 +==== 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>
 +<?​php>​
 +
 +try { 
 +
 +  $MerchantID=2; ​
 +
 +  $res=$client->​getMerchant($restoken,​ $MerchantID); ​
 +
 +  $this->​assertEquals($res->​MerchID,​ $MerchantID); ​
 +
 +  $this->​assertEquals($res->​Zip,​ '​12311'​); ​
 +                         
 +
 +
 +catch (SoapFault $e) { 
 +
 +  echo $client->​__getLastRequest(); ​
 +  echo $client->​__getLastResponse(); ​
 +  die("​getMerchant failed: " .$e->​getMessage()); ​
 +  } 
 +
 +?> 
 +</​code>​
 + 
 + 
 + 
developer/soap-1.2/methods/getmerchant.txt ยท Last modified: 2010/02/12 11:48 by hmcgowan

Page Tools