developer:soap:methods:deletemerchant

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:deletemerchant [2008/02/13 08:36]
nell
developer:soap:methods:deletemerchant [2009/07/06 10:57]
epouchak
Line 1: Line 1:
-====== deleteMerchant ======+<embed ..:​contents/>​====== deleteMerchant ======
  
 **Reseller only method.** **Reseller only method.**
Line 15: Line 15:
 ===== Syntax ===== ===== Syntax =====
  
-boolean **deleteMerchant** ( [[developer:​soap:​objects:​ueSecurityToken]] Token, integer MerchantID, string Reason ) +boolean **deleteMerchant** ( [[..:​objects:​ueSecurityToken]] Token, integer MerchantID, string Reason ) 
  
  
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|
 |string |Reason |Any information relevant to the delete merchant account request. You may wish to include the following: contact request details, reason for deletion request, any other relevant information. | |string |Reason |Any information relevant to the delete merchant account request. You may wish to include the following: contact request details, reason for deletion request, any other relevant information. |
Line 34: Line 34:
  
 ==== 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;​  
-   ​$Reason='​Testing Soap API'; ​    +  $Reason='​Testing Soap API'; ​    
  
-   $res=$client->​deleteMerchant($restoken,​$MerchantID,​$Reason);​  +  ​$res=$client->​deleteMerchant($restoken,​$MerchantID,​$Reason);​  
-          print_r($res); ​    +  print_r($res); ​    
  
-   $this->​assertEquals($res,​true); ​+  ​$this->​assertEquals($res,​true); ​
  
-   $this->​assertEquals($res->​Zip,​ '​12311'​); ​+  ​$this->​assertEquals($res->​Zip,​ '​12311'​); ​
  
-} catch (SoapFault $e) {  + 
-     ​echo $client->​__getLastRequest();​  + 
-     ​echo $client->​__getLastResponse();​  +catch (SoapFault $e) {  
-     ​die("​deleteMerchant failed: " .$e->​getMessage()); ​+  echo $client->​__getLastRequest();​  
 +  echo $client->​__getLastResponse();​  
 +  die("​deleteMerchant failed: " .$e->​getMessage()); ​
  
  
 ?>  ?> 
 </​code>​ </​code>​
- 
-  
-  
-  
developer/soap/methods/deletemerchant.txt · Last modified: 2009/07/06 10:57 by epouchak

Page Tools