developer:soap:methods:gettransaction

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
Next revision Both sides next revision
developer:soap:methods:gettransaction [2008/02/26 07:56]
nell
developer:soap:methods:gettransaction [2009/01/13 16:05]
hmcgowan
Line 29: Line 29:
  
 ===== Examples ===== ===== Examples =====
 +
  
 ==== 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 { 
-    ​$RefNum=1009411; ​+  ​$RefNum=1009411; ​
            
-    ​$res=$client->​getTransaction($token,​ $RefNum); ​  +  ​$res=$client->​getTransaction($token,​ $RefNum); ​  
-    print_r($res); ​+  print_r($res); ​ 
  
 +
 catch (SoapFault $e){  catch (SoapFault $e){ 
-    ​die("​getTransaction failed :" .$e->​getMessage()); ​+  ​die("​getTransaction failed :" .$e->​getMessage()); ​
  
  
developer/soap/methods/gettransaction.txt · Last modified: 2009/09/09 11:47 by charlie

Page Tools