developer:soap:methods:gettransactionstatus

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:gettransactionstatus [2009/02/03 10:59]
hmcgowan
developer:soap:methods:gettransactionstatus [2009/09/09 13:10]
charlie
Line 1: Line 1:
-====== getTransactionStatus ======+<embed ..:​contents/>​====== getTransactionStatus ======
  
 Retrieve the current status of a specific transaction. Retrieve the current status of a specific transaction.
Line 11: Line 11:
 To specify the transaction you would like to view, you must retrieve it using the reference number (RefNum) assigned to the transaction by the gateway. The RefNum is assigned by the gateway and returned when a transaction is processed. To find a missing RefNum, use the [[searchTransactions]] method. To specify the transaction you would like to view, you must retrieve it using the reference number (RefNum) assigned to the transaction by the gateway. The RefNum is assigned by the gateway and returned when a transaction is processed. To find a missing RefNum, use the [[searchTransactions]] method.
  
-See also [[runTransaction]],​ [[runQuickSale]],​ [[voidTransaction]],​ [[runCredit]],​ [[runSale]],​ [[authOnly]], [[captureTransaction]] ​+See also [[runTransaction]],​ [[runQuickSale]],​ [[voidTransaction]],​ [[runCredit]],​ [[runSale]],​ [[runauthOnly]], [[captureTransaction]] ​
  
 ===== Syntax ===== ===== Syntax =====
  
-[[developer:​soap:​objects:​TransactionResponse]] **getTransactionStatus** ( [[developer:​soap:​objects:​ueSecurityToken]] Token, integer RefNum ) +[[..:​objects:​TransactionResponse]] **getTransactionStatus** ( [[..:​objects:​ueSecurityToken]] Token, integer RefNum ) 
  
  
Line 22: Line 22:
  
 ^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 |RefNum |Transaction Reference number assigned by the gateway. | |integer |RefNum |Transaction Reference number assigned by the gateway. |
  
 ===== ReturnValue ===== ===== ReturnValue =====
  
-|[[developer:​soap:​objects:​TransactionResponse]] |Returns a TransactionResponse object containing the results of the transaction and all relevant data.  |+|[[..:​objects:​TransactionResponse]] |Returns a TransactionResponse object containing the results of the transaction and all relevant data.  |
  
 ===== Examples ===== ===== Examples =====
Line 34: Line 34:
 ==== 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>
Line 42: Line 42:
  
   $refnum='​1005312'; ​   $refnum='​1005312'; ​
-  print_r($tran->​getTransactionStatus($token,​$refnum)); ​+  print_r($client->​getTransactionStatus($token,​$refnum)); ​
  
   }    } 
Line 58: Line 58:
  
 ?>  ?> 
 +</​code>​
 +
 +
 +==== Java ====
 +
 +This example uses the [[developer/​javalibrary|USAePay Java library]]. ​ For directions on how to install the library and create the token/​client objects, go to either the [[..:​howto:​javajaxrpc|Java JAX-RPC Howto]] or the [[..:​howto:​javajaxws|Java JAX-WS Howto]].
 +
 +<code java>
 +try {
 +  //Set RefNum to the Reference Number of transaction you 
 +  //want to retrieve.
 +  BigInteger refnum = new BigInteger();​
 +
 +  TransactionResponse response = new TransactionResponse();​
 +
 +  response = client.getTransactionStatus(token,​ refnum);
 +
 +  System.out.println(response.getStatus());​
 +} catch (Exception e) {
 +    System.out.println("​Soap Exception: " + e.getMessage());​
 +}
 </​code>​ </​code>​
  
developer/soap/methods/gettransactionstatus.txt ยท Last modified: 2009/09/09 13:10 by charlie

Page Tools