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 Both sides next revision
developer:soap:methods:gettransaction [2008/03/13 12:03]
vladg
developer:soap:methods:gettransaction [2009/01/13 16:05]
hmcgowan
Line 33: Line 33:
 ==== 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://​wiki.usaepay.com/​developer/​soap/​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