developer:soap-1.2:methods:addcustomerpaymentmethod

Differences

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

Link to this comparison view

Last revision Both sides next revision
developer:soap-1.2:methods:addcustomerpaymentmethod [2010/02/12 11:52]
epouchak created
developer:soap-1.2:methods:addcustomerpaymentmethod [2010/09/17 14:57]
irina
Line 136: Line 136:
  System.out.println("​Soap Exception: " + e.getMessage());​  System.out.println("​Soap Exception: " + e.getMessage());​
 } }
 +</​code>​
 +
 +==== .NET C# ====
 +<code c>
 +string CustNum = "​105619";​
 +
 +            usaepay.PaymentMethod payMethod = new usaepay.PaymentMethod(); ​        
 +
 +            payMethod.CreditCardData = new usaepay.CreditCardData();​
 +            payMethod.CreditCardData.CardExpiration = "​1212";​
 +            payMethod.CreditCardData.CardNumber = "​4444555566667779";​
 +            payMethod.CreditCardData.AvsStreet = "123 Main st.";
 +            payMethod.CreditCardData.AvsZip = "​90046";​
 +            payMethod.MethodName = "My two";
 +
 +            string response;
 +
 +            try
 +            {
 +                response = client.addCustomerPaymentMethod(token,​ CustNum, payMethod, false, true);
 +                MessageBox.Show(string.Concat(response));​
 +            }
 +
 +            catch (Exception err)
 +            {
 +                MessageBox.Show(err.Message);​
 +            }
 </​code>​ </​code>​
  
developer/soap-1.2/methods/addcustomerpaymentmethod.txt ยท Last modified: 2010/10/20 11:38 by irina

Page Tools