developer:soap:methods:getcustomerhistory

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:getcustomerhistory [2009/01/19 14:03]
hmcgowan
developer:soap:methods:getcustomerhistory [2009/09/08 13:16]
charlie
Line 1: Line 1:
-====== getCustomerHistory ======+<embed ..:​contents/>​====== getCustomerHistory ======
  
 Pull details of all transactions run for CustNum. Pull details of all transactions run for CustNum.
Line 13: Line 13:
 ===== Syntax ===== ===== Syntax =====
  
-[[developer:​soap:​objects:​TransactionSearchResult]] **getCustomerHistory** ( [[developer:​soap:​objects:​ueSecurityToken]] Token, integer CustNum ) +[[..:​objects:​TransactionSearchResult]] **getCustomerHistory** ( [[..:​objects:​ueSecurityToken]] Token, integer CustNum ) 
  
  
Line 19: Line 19:
  
 ^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.|
 |integer |CustNum |A unique customer number assigned by the gateway. | |integer |CustNum |A unique customer number assigned by the gateway. |
  
Line 25: Line 25:
 ===== Return Value ===== ===== Return Value =====
  
-|[[developer:​soap:​objects:​TransactionSearchResult]] |Returns the results of the customer transaction history search. |+|[[..:​objects:​TransactionSearchResult]] |Returns the results of the customer transaction history search. |
  
 ===== Examples ===== ===== Examples =====
Line 31: Line 31:
 ==== PHP ==== ==== PHP ====
  
-For directions on how to set up the WSDL link, create "​$token"​ and "​$client",​ go to [[developer:​soap:​howto:​php|PHP Soap How-to]].+For directions on how to set up the WSDL link, create "​$token"​ and "​$client",​ go to [[..:​howto:​php|PHP Soap How-to]].
  
 <code php> <code php>
Line 55: Line 55:
 </​code>​ </​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 CustNum to the Customer Number of customer you 
 +  //want to retrieve a transaction history from.
 +  BigInteger CustNum = new BigInteger;
 +  ​
 +  TransactionSearchResult CustHist = new TransactionSearchResult();​
 +  CustHist = client.getCustomerHistory(token,​ CustNum);
 +} catch (Exception e) {
 +    System.out.println("​Soap Exception: " + e.getMessage());​
 +}
 +</​code>​
developer/soap/methods/getcustomerhistory.txt ยท Last modified: 2009/09/08 13:16 by charlie

Page Tools