developer:soap:methods:disablecustomer

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
Last revision Both sides next revision
developer:soap:methods:disablecustomer [2009/01/19 11:46]
hmcgowan
developer:soap:methods:disablecustomer [2009/09/08 12:30]
charlie
Line 1: Line 1:
-====== disableCustomer ======+<embed ..:​contents/>​====== disableCustomer ======
  
 Disable the recurring billing for a customer specified by CustNum. Disable the recurring billing for a customer specified by CustNum.
Line 13: Line 13:
 ===== Syntax ===== ===== Syntax =====
  
-boolean **disableCustomer** ( [[developer:​soap:​objects:​ueSecurityToken]] Token, integer CustNum ) +boolean **disableCustomer** ( [[..:​objects:​ueSecurityToken]] Token, integer CustNum ) 
  
  
Line 19: Line 19:
  
 ^Type   ​^Name ​  ​^Description ​  ^ ^Type   ​^Name ​  ​^Description ​  ^
-|[[developer:​soap:​objects:​ueSecurityToken]] |Token |Merchant security token: used to identify merchant and validate transaction.|+|[[..:​objects:​ueSecurityToken]] |Token |Merchant security token: used to identify merchant and validate transaction.|
 |integer |CustNum |A unique customer number assigned by the gateway. | |integer |CustNum |A unique customer number assigned by the gateway. |
  
Line 32: Line 32:
 ==== 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]].+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>
Line 48: Line 48:
       ​       ​
   echo $e->​getMessage(); ​   echo $e->​getMessage(); ​
-  echo "​\n\nRequest:​ " . $tran->​__getLastRequest(); ​ 
-  echo "​\n\nResponse:​ " . $tran->​__getLastResponse(); ​ 
-    
   }    } 
  
 ?>  ?> 
 +</​code>​
 +
 +==== Java ====
 +
 +This example uses the [[developer/​javalibrary|USAePay Java library]]. ​ For directions on how to install the library and create the token/​client objects, go to either the [[..:​howto:​javajaxrpc|Java JAX-RPC Howto]] or the [[..:​howto:​javajaxws|Java JAX-WS Howto]].
 +
 +<code java>
 +try {
 +  //Set CustNum for the Customer that you want to disable
 +  BigInteger CustNum = new BigInteger("​12345678"​);​
 +
 +  client.disableCustomer(token,​ CustNum);
 +} catch (Exception e) {
 +    System.out.println("​Soap Exception: " + e.getMessage());​
 +}
 </​code>​ </​code>​
  
developer/soap/methods/disablecustomer.txt ยท Last modified: 2009/12/21 14:45 by vladg

Page Tools