developer:soap-1.1:methods:addcustomerpaymentmethod

Differences

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

Link to this comparison view

Next revision
Previous revision
developer:soap-1.1:methods:addcustomerpaymentmethod [2009/06/24 13:51]
charlie created
developer:soap-1.1:methods:addcustomerpaymentmethod [2010/10/21 15:47]
irina
Line 110: Line 110:
  
 ?>  ?> 
 +</​code>​
 +
 +==== .NET VB ====
 +<code vb>
 +Dim CustNum As String
 +        CustNum = "​120221"​
 +
 +        Dim payMethod As usaepay.PaymentMethod = 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"
 +
 +        Dim response As String
 +
 +        response = client.addCustomerPaymentMethod(token,​ CustNum, payMethod, False, True)
 +        MsgBox(response)
 +</​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