developer:soap:methods:getcustomerhistory

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 Both sides next revision
developer:soap:methods:getcustomerhistory [2008/02/13 07:25]
nell
developer:soap:methods:getcustomerhistory [2009/01/19 14:03]
hmcgowan
Line 30: Line 30:
  
 ==== 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]].
  
 <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='​547';​  +  ​$custnum='​547';​  
-    print_r($tran->​getCustomerHistory($token,​$custnum)); ​+  print_r($client->​getCustomerHistory($token,​$custnum)); ​
  
-} catch(SoapFault $e) { + 
 + 
 +catch(SoapFault $e) { 
            
-    ​echo $e->​getMessage(); ​+  ​echo $e->​getMessage(); ​
            
  
  
-echo "​\n\nRequest:​ " . $tran->​__getLastRequest();​  +echo "​\n\nRequest:​ " . $client->​__getLastRequest();​  
-echo "​\n\nResponse:​ " . $tran->​__getLastResponse(); ​ +echo "​\n\nResponse:​ " . $client->​__getLastResponse(); ​
- +
  
 ?>  ?> 
developer/soap/methods/getcustomerhistory.txt · Last modified: 2009/09/08 13:16 by charlie

Page Tools