developer:soap:methods:runauthonly

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:runauthonly [2009/07/02 11:04]
epouchak
developer:soap:methods:runauthonly [2009/09/10 12:39]
charlie
Line 15: Line 15:
 ===== Syntax ===== ===== Syntax =====
  
-[[developer:​soap:​objects:​TransactionResponse]] **runAuthOnly** ( [[developer:​soap:​objects:​ueSecurityToken]] Token, [[developer:​soap:​objects:​TransactionRequestObject]] Params )+[[..:​objects:​TransactionResponse]] **runAuthOnly** ( [[..:​objects:​ueSecurityToken]] Token, [[..:​objects:​TransactionRequestObject]] Params )
  
  
Line 21: Line 21:
  
 ^Type   ​^Name ​  ​^Description ​  ^ ^Type   ​^Name ​  ​^Description ​  ^
-|[[developer:​soap:​objects:​ueSecurityToken]] |Token |Merchant security token: used to identify merchant and validate transaction.| +|[[..:​objects:​ueSecurityToken]] |Token |Merchant security token: used to identify merchant and validate transaction.| 
-|[[developer:​soap:​objects:​TransactionRequestObject]] |Params |Transaction details from all fields of the transaction form, including reference number, transaction amount, customer ID, currency, authorization code, and any other information entered at the time of the transaction.|+|[[..:​objects:​TransactionRequestObject]] |Params |Transaction details from all fields of the transaction form, including reference number, transaction amount, customer ID, currency, authorization code, and any other information entered at the time of the transaction.|
  
  
Line 30: Line 30:
  
  
-|[[developer:​soap:​objects:​TransactionResponse]] |Returns a TransactionResponse object containing the results of the transaction and all relevant data. |+|[[..:​objects:​TransactionResponse]] |Returns a TransactionResponse object containing the results of the transaction and all relevant data. |
  
 ===== Examples ===== ===== Examples =====
Line 36: Line 36:
 ==== PHP ==== ==== PHP ====
  
-For directions on how to set up the WSDL link, create "​$token"​ and "​$client",​ go to [[developer:​soap:​howto:​php|SOAP PHP How-to]].+For directions on how to set up the WSDL link, create "​$token"​ and "​$client",​ go to [[..:​howto:​php|SOAP PHP How-to]].
  
 <code php> <code php>
Line 70: Line 70:
  
 ?>  ?> 
 +</​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 {
 +  TransactionRequestObject params = new TransactionRequestObject();​
 +
 +  // set card holder name
 +    params.setAccountHolder("​Test Joe");
 +
 +    // populate transaction details
 +    TransactionDetail details = new TransactionDetail();​
 +      details.setAmount(22.34);​
 +      details.setDescription("​My Test Sale"​);​
 +      details.setInvoice("​119891"​);​
 +    params.setDetails(details);​
 +
 +    // populate credit card data
 +    CreditCardData ccdata = new CreditCardData();​
 +      ccdata.setCardNumber("​4444555566667779"​);​
 +      ccdata.setCardExpiration("​0912"​);​
 +      ccdata.setCardCode("​999"​);​
 +    params.setCreditCardData(ccdata);​
 +
 +
 +  // Create request object
 +  RunAuthOnly request = new RunAuthOnly();​
 +    request.setToken(token);​
 +    request.setParams(params);​
 +
 +  // Create response object
 +  TransactionResponse response;
 +
 +  // run sale
 +  response = client.runAuthOnly(token,​ params);
 +
 +  System.out.println("​Result:​ " + response.getResult());​
 +} catch (Exception e) {
 +    System.out.println("​Soap Exception: " + e.getMessage());​
 +}
 </​code>​ </​code>​
  
 ==== VB.NET ==== ==== VB.NET ====
  
-For directions on how to set up the WSDL link, create "​token"​ and "​client",​ go to [[developer:​soap:​howto:​vb|Visual Basic .Net Soap How-to]].+For directions on how to set up the WSDL link, create "​token"​ and "​client",​ go to [[..:​howto:​vb|Visual Basic .Net Soap How-to]].
  
 <code vb> <code vb>
developer/soap/methods/runauthonly.txt · Last modified: 2009/09/10 12:39 by charlie

Page Tools