developer:soap-1.1:methods:addcustomer

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Last revision Both sides next revision
developer:soap-1.1:methods:addcustomer [2010/09/30 13:51]
irina
developer:soap-1.1:methods:addcustomer [2010/10/21 15:46]
irina
Line 101: Line 101:
  
 ?>  ?> 
 +</​code>​
 +
 +==== .NET VB ====
 +<code vb>
 +Dim customer As usaepay.CustomerObject = New usaepay.CustomerObject
 +        Dim address As usaepay.Address = New usaepay.Address
 +        address.FirstName = "​John"​
 +        address.LastName = "​Doe"​
 +        address.Company = "​Acme"​
 +        address.Street = "123 main st."
 +        address.City = "​Hollywood"​
 +        address.State = "​ca"​
 +        address.Zip = "​91607"​
 +        address.Country = "​USA"​
 +        customer.BillingAddress = address
 +
 +        customer.Enabled = True
 +        customer.Amount = 5.0
 +        customer.Next = "​2010-08-15"​
 +        customer.Schedule = "​monthly"​
 +
 +        Dim payMethod(0) As usaepay.PaymentMethod
 +        payMethod(0) = New usaepay.PaymentMethod
 +        payMethod(0).CreditCardData = New usaepay.CreditCardData
 +        payMethod(0).CreditCardData.CardExpiration = "​1212"​
 +        payMethod(0).CreditCardData.CardNumber = "​4444555566667779"​
 +        payMethod(0).CreditCardData.AvsStreet = "123 Main st."
 +        payMethod(0).CreditCardData.AvsZip = "​90046"​
 +        payMethod(0).MethodName = "My Visa"
 +
 +        customer.PaymentMethods = payMethod
 +        Dim response As String
 +
 +        response = client.addCustomer(token,​ customer)
 +        MsgBox(String.Concat(response))
 +
 </​code>​ </​code>​
  
developer/soap-1.1/methods/addcustomer.txt ยท Last modified: 2017/01/30 10:29 by charlie

Page Tools