developer:soap:methods:getcustomerpaymentmethod

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

developer:soap:methods:getcustomerpaymentmethod [2009/07/24 00:44]
tem created
developer:soap:methods:getcustomerpaymentmethod [2009/09/08 13:13] (current)
charlie
Line 59: Line 59:
  
 ?>  ?> 
 +</​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 payment method from.
 +  BigInteger custnum = new BigInteger("​12345678"​);​
 +
 +  //Set PayID to the Payment Method ID of the 
 +  //Payment Method you want to retrieve.
 +  BigInteger PayID = new BigInteger("​654321"​);​
 +  ​
 +  PaymentMethod PayMethod = new PaymentMethod();​
 +  PayMethod = client.getCustomerPaymentMethod(token,​ custnum, PayID);
 +} catch (Exception e) {
 +    System.out.println("​Soap Exception: " + e.getMessage());​
 +}
 </​code>​ </​code>​
  
developer/soap/methods/getcustomerpaymentmethod.txt ยท Last modified: 2009/09/08 13:13 by charlie

Page Tools