developer:soap:methods:capturetransaction

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
developer:soap:methods:capturetransaction [2009/08/18 17:59]
charlie
developer:soap:methods:capturetransaction [2009/09/08 09:49] (current)
charlie
Line 133: Line 133:
 </​SOAP-ENV:​Envelope> ​ </​SOAP-ENV:​Envelope> ​
 </​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 {
 +
 +//Setting RefNum from the original transaction
 +BigInteger RefNum = new BigInteger('​12345678'​);​
 +
 +//Setting Amount to capture
 +Double Amount = new Double(12.34);​
 +
 +//Create Transaction Response
 +TransactionResponse Response;
 +
 +Response = client.captureTransaction(token,​RefNum,​Amount);​
 +
 +} catch (Exception e) {
 + System.out.println("​Soap Exception: " + e.getMessage());​
 +}
 +</​code>​
 +
developer/soap/methods/capturetransaction.txt ยท Last modified: 2009/09/08 09:49 by charlie

Page Tools