developer:soap:methods:runquickcredit

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:runquickcredit [2009/07/31 10:57]
charlie
developer:soap:methods:runquickcredit [2009/09/10 12:55]
charlie
Line 67: Line 67:
  
 ?>  ?> 
 +</​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 credit on
 +  BigInteger RefNum = new BigInteger("​123456789"​);​
 +
 +  //populate transaction details
 +  TransactionDetail details = new TransactionDetail();​
 +    details.setAmount(22.34);​
 +    details.setDescription("​QuickCredit"​);​
 +    details.setInvoice("​119891"​);​
 +
 +  // Create response object
 +  TransactionResponse response;
 +
 +  response = client.runQuickCredit(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>​
  
Line 82: Line 112:
     details.Amount = "​34.50"​     details.Amount = "​34.50"​
     details.AmountSpecified = True     details.AmountSpecified = True
-    details.Description = "​Example ​QuickSale"+    details.Description = "​Example ​QuickCredit"
     details.Invoice = "​123456"​     details.Invoice = "​123456"​
  
developer/soap/methods/runquickcredit.txt ยท Last modified: 2009/09/10 12:55 by charlie

Page Tools