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
Next revision
Previous revision
developer:soap:methods:runquicksale [2009/07/02 11:37]
epouchak
developer:soap:methods:runquicksale [2009/09/24 12:41]
tem
Line 7: Line 7:
 ===== Description ===== ===== Description =====
  
-This method allows you to run a new transaction using stored customer ​data. Simply pass the reference number ($RefNum) of previous transaction and the gateway will automatically transfer the credit card information for use in the new transaction. Some credit card information,​ such as the card code and magnetic strip cannot be stored. This may cause the new transaction to come in at a higher rate than the original.+This method allows you to run a new transaction using the payment ​data from a previous transaction. Simply pass the reference number ($RefNum) of the previous transaction and the gateway will automatically transfer the credit card or electronic check (ACH) information for use in the new transaction. Some credit card information,​ such as the card code and magnetic strip cannot be stored. This may cause the new transaction to come in at a higher rate than the original.
  
 See also [[runTransaction]],​ [[runSale]],​ [[voidTransaction]],​ [[runCredit]] See also [[runTransaction]],​ [[runSale]],​ [[voidTransaction]],​ [[runCredit]]
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