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
Last revision Both sides next revision
developer:soap:methods:refundtransaction [2009/07/31 11:30]
charlie
developer:soap:methods:refundtransaction [2009/09/16 13:19]
charlie
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