developer:soap-1.1: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.1:methods:addcustomerpaymentmethod [2009/06/24 13:51]
charlie created
developer:soap-1.1:methods:addcustomerpaymentmethod [2010/09/30 13:56]
irina
Line 110: Line 110:
  
 ?>  ?> 
 +</​code>​
 +
 +==== .NET C# ====
 +<code c>
 +string CustNum = "​109100";​
 +
 +            usaepay.PaymentMethod payMethod = new usaepay.PaymentMethod();​
 +            payMethod.CreditCardData = new usaepay.CreditCardData();​
 +            payMethod.CreditCardData.CardExpiration = "​1212";​
 +            payMethod.CreditCardData.CardNumber = "​4000100011112224";​
 +            payMethod.CreditCardData.AvsStreet = "123 Main st.";
 +            payMethod.CreditCardData.AvsZip = "​90046";​
 +            payMethod.MethodName = "My Visa";
 +
 +            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.1/methods/addcustomerpaymentmethod.txt ยท Last modified: 2010/10/21 15:47 by irina

Page Tools