developer:soap:methods:searchcustomerid

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:searchcustomerid [2008/02/12 09:39]
nell
developer:soap:methods:searchcustomerid [2009/07/06 09:15]
epouchak
Line 1: Line 1:
-====== searchCustomerID ======+<embed ..:​contents/>​====== searchCustomerID ======
  
 Find a CustNum (assigned by the gateway) using a CustID (assigned by merchant). Find a CustNum (assigned by the gateway) using a CustID (assigned by merchant).
Line 13: Line 13:
 ===== Syntax ===== ===== Syntax =====
  
-integer **searchCustomerID** ( [[developer:​soap:​objects:​ueSecurityToken]] Token, string CustID ) +integer **searchCustomerID** ( [[..:​objects:​ueSecurityToken]] Token, string CustID ) 
  
  
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.|
 |string |CustID |Merchant assigned Customer ID. | |string |CustID |Merchant assigned Customer ID. |
  
Line 30: Line 30:
  
 ==== 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 { 
  
-   $CustID = "​21021"; ​+  ​$CustID = "​21021"; ​
     ​     ​
-   $CustNum = $client->​searchCustomerID(token,​ $CustID); ​+  ​$CustNum = $client->​searchCustomerID(token,​ $CustID); ​
                                                    
-   $this->​assertEquals($CustNum,​ "​1222"​); ​+  ​$this->​assertEquals($CustNum,​ "​1222"​); ​
                            
-} catch(SoapFault $e) { +  ​ 
 + 
 +catch(SoapFault $e) { 
                    
-     die("​soap fault: " .$e->​getMessage()); ​         +  ​die("​soap fault: " .$e->​getMessage()); ​         
-+ 
 +  ​
  
 ?>  ?> 
 </​code>​ </​code>​
developer/soap/methods/searchcustomerid.txt · Last modified: 2009/07/06 09:15 by epouchak

Page Tools