developer:soap:methods:enablecustomer

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:enablecustomer [2008/02/12 09:40]
nell
developer:soap:methods:enablecustomer [2009/07/06 08:49]
epouchak
Line 1: Line 1:
-====== enableCustomer ======+<embed ..:​contents/>​====== enableCustomer ======
  
  
Line 22: Line 22:
 ===== Syntax ===== ===== Syntax =====
  
-boolean **enableCustomer** ( [[developer:​soap:​objects:​ueSecurityToken]] Token, integer CustNum ) +boolean **enableCustomer** ( [[..:​objects:​ueSecurityToken]] Token, integer CustNum ) 
  
  
Line 28: Line 28:
  
 ^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 39: Line 39:
  
 ==== 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 "​$token"​ and "​$client," ​ 
-// see: http://​usaepay.com/​developer/​howto/​php. ​ 
  
 try {  try { 
  
-   $custnum=$this->​createCustomer(); ​+  ​$custnum=$this->​createCustomer(); ​ 
 + 
 +  $res=$client->​enableCustomer($token,​ $custnum); ​    
  
-   $res=$client->enableCustomer($token, $custnum);     ​+  ​$this->assertTrue($res);  
  
-   ​$this->​assertTrue($res);  ​+  } 
  
-catch(SoapFault $e) { +catch(SoapFault $e) { 
                    
-     die("​soap fault: " .$e->​getMessage()); ​        ​ +  ​die("​soap fault: " .$e->​getMessage());​  
-+         
 +  ​
  
 ?>  ?> 
 </​code>​ </​code>​
  
developer/soap/methods/enablecustomer.txt · Last modified: 2009/09/08 12:31 by charlie

Page Tools