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 Both sides next revision
developer:soap:methods:runquickcredit [2009/07/31 10:57]
charlie
developer:soap:methods:runquickcredit [2009/09/10 11:14]
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 {
 +  FieldValueArray parameters = new FieldValueArray();​
 +    parameters.add(new FieldValue("​UMname","​Tester Jones"​));​
 +    parameters.add(new FieldValue("​UMdescription","​runTrasactionAPI sale"​));​
 +    parameters.add(new FieldValue("​UMamount","​3.51"​));​
 +    parameters.add(new FieldValue("​UMinvoice","​12345"​));​
 +    parameters.add(new FieldValue("​UMcard","​4444555566667779"​));​
 +    parameters.add(new FieldValue("​UMexpir","​1212"​));​
 +    parameters.add(new FieldValue("​UMstreet","​1234 Main Street"​));​
 +    parameters.add(new FieldValue("​UMzip","​99281"​));​
 +    parameters.add(new FieldValue("​UMcvv2","​444"​));​
 +
 +  TransactionResponse response = new TransactionResponse();​
 +
 +  response = client.runTransactionAPI(token,​ parameters);​
 +
 +  System.out.println("​Error:​ " + response.getError());​
 +} catch (Exception e) {
 +    System.out.println("​Soap Exception: " + e.getMessage());​
 +}
 </​code>​ </​code>​
  
developer/soap/methods/runquickcredit.txt ยท Last modified: 2009/09/10 12:55 by charlie

Page Tools