developer:soap:methods:runquicksale

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:runquicksale [2009/07/02 11:37]
epouchak
developer:soap:methods:runquicksale [2009/09/10 12:53]
charlie
Line 69: Line 69:
  
 ?>  ?> 
 +</​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 transaction refference number
 +  //you want to run a quick sale on
 +  BigInteger RefNum = new BigInteger("​123456789"​);​
 +
 +  //populate transaction details
 +  TransactionDetail details = new TransactionDetail();​
 +    details.setAmount(22.34);​
 +    details.setDescription("​QuickSale"​);​
 +    details.setInvoice("​119891"​);​
 +
 +  // Create response object
 +  TransactionResponse response;
 +
 +  response = client.runQuickSale(token,​ RefNum, details, false);
 +
 +  System.out.println("​Response:​ " + response.getResult());​
 +  System.out.println("​RefNum:​ " + response.getRefNum());​
 +} catch (Exception e) {
 +    System.out.println("​Soap Exception: " + e.getMessage());​
 +}
 </​code>​ </​code>​
  
developer/soap/methods/runquicksale.txt ยท Last modified: 2009/09/24 12:41 by tem

Page Tools