developer:soap:methods:updatecustomer

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:updatecustomer [2009/01/19 13:19]
hmcgowan
developer:soap:methods:updatecustomer [2009/07/06 10:00]
epouchak
Line 1: Line 1:
-====== updateCustomer ======+<embed ..:​contents/>​====== updateCustomer ======
  
 Replace all data for customer specified by CustNum. Replace all data for customer specified by CustNum.
Line 19: Line 19:
 ===== Syntax ===== ===== Syntax =====
  
-boolean **updateCustomer** ( [[developer:​soap:​objects:​ueSecurityToken]] Token, integer CustNum, [[developer:​soap:​objects:​CustomerObject]] CustomerData ) +boolean **updateCustomer** ( [[..:​objects:​ueSecurityToken]] Token, integer CustNum, [[..:​objects:​CustomerObject]] CustomerData ) 
  
  
Line 27: Line 27:
  
 ^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.|
-|[[developer:​soap:​objects:​CustomerObject]] |CustomerData |Includes customer information such as customer number, merchant assigned customer ID, billing address, receipt settings, recurring billing settings, and other pertinent information. |+|[[..:​objects:​CustomerObject]] |CustomerData |Includes customer information such as customer number, merchant assigned customer ID, billing address, receipt settings, recurring billing settings, and other pertinent information. |
  
  
Line 41: Line 41:
 ==== 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>
 <?​php ​ <?​php ​
- 
  
 try {  try { 
Line 54: Line 53:
   $customer->​Description='​New Description'; ​   $customer->​Description='​New Description'; ​
            
-  $res=$tran->​updateCustomer($token,​ 1309, $customer); ​+  $res=$client->​updateCustomer($token,​ 1309, $customer); ​
            
   print_r($res); ​   print_r($res); ​
- 
-    //​$res=$tran->​addCustomer($token,​$customerdata); ​ 
-    //​print_r($res); ​ 
            
 +
  
-catch(SoapFault $e) { +catch(SoapFault $e) { 
            
-    ​echo "​SoapFault:​ " .$e->​getMessage();​  +  ​echo "​SoapFault:​ " .$e->​getMessage();​  
-    print_r($e);​  +  print_r($e);​  
-    echo "​\n\nRequest:​ " . $tran->​__getLastRequest();​  +  echo "​\n\nRequest:​ " . $client->​__getLastRequest();​  
-    echo "​\n\nResponse:​ " . $tran->​__getLastResponse(); ​+  echo "​\n\nResponse:​ " . $client->​__getLastResponse(); ​
            
  
- 
- 
- 
  
 ?>  ?> 
 </​code>​ </​code>​
  
developer/soap/methods/updatecustomer.txt · Last modified: 2009/07/06 10:00 by epouchak

Page Tools