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
Last revision Both sides next revision
developer:soap:methods:runquickcredit [2009/09/10 11:14]
charlie
developer:soap:methods:runquickcredit [2009/09/10 12:54]
charlie
Line 76: Line 76:
 <code java> <code java>
 try { try {
-  FieldValueArray parameters = new FieldValueArray();​ +  
-    ​parameters.add(new FieldValue("​UMname","​Tester Jones"​));​ +  //Set RefNum to the transaction refference number 
-    ​parameters.add(new FieldValue("​UMdescription","​runTrasactionAPI ​sale")); +  //you want to run a quick sale on 
-    ​parameters.add(new FieldValue("UMamount","​3.51"​));​ +  ​BigInteger RefNum = new BigInteger("123456789");
-    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();+  ​//populate transaction details 
 +  TransactionDetail details ​= new TransactionDetail(); 
 +    details.setAmount(22.34);​ 
 +    details.setDescription("​QuickCredit"​);​ 
 +    details.setInvoice("​119891"​);
  
-  response ​= client.runTransactionAPI(token,​ parameters);+  ​// Create response object 
 +  TransactionResponse ​response;
  
-  System.out.println("​Error: " + response.getError());+  ​response = client.runQuickCredit(token,​ RefNum, details, false); 
 + 
 +  System.out.println("​Response:​ " + response.getResult());​ 
 +  ​System.out.println("​RefNum: " + response.getRefNum());
 } catch (Exception e) { } catch (Exception e) {
     System.out.println("​Soap Exception: " + e.getMessage());​     System.out.println("​Soap Exception: " + e.getMessage());​
developer/soap/methods/runquickcredit.txt · Last modified: 2009/09/10 12:55 by charlie

Page Tools