developer:soap:methods:refundtransaction

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:refundtransaction [2009/07/31 11:30]
charlie
developer:soap:methods:refundtransaction [2010/05/11 12:52]
vladg wrong method name in the client-> line
Line 44: Line 44:
   $amount="​1.99";​   $amount="​1.99";​
  
-  print_r($client->​runQuickSale($token,​$refnum,​ $amount));+  print_r($client->​refundTransaction($token,​$refnum,​ $amount));
  
  
Line 58: Line 58:
 </​code>​ </​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 refund.
 +  BigInteger RefNum = _runTransaction();​
 + 
 +  TransactionResponse response;
 +
 +  response = client.refundTransaction(token,​ RefNum, 10.10);
 +
 +  System.out.println(response.getStatus());​
 +} catch (Exception e) {
 +    System.out.println("​Soap Exception: " + e.getMessage());​
 +}
 +</​code>​
  
 ==== XML ==== ==== XML ====
developer/soap/methods/refundtransaction.txt ยท Last modified: 2010/05/11 12:52 by vladg

Page Tools