developer:soap-1.1:methods:runcustomertransaction

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:runcustomertransaction [2009/06/24 13:46]
charlie created
developer:soap-1.1:methods:runcustomertransaction [2010/10/21 15:23]
irina
Line 64: Line 64:
  
 ?>  ?> 
 +</​code>​
 +
 +==== .NET VB ====
 +<code vb>
 +Dim custnum As String
 +        custnum = "​120221"​
 +        Dim paymentMethodID As String
 +        paymentMethodID = "​76"​
 +
 +
 +
 +        Dim Details As usaepay.TransactionDetail = New usaepay.TransactionDetail
 +
 +        Details.Invoice = "​123456"​
 +        Details.Description = "​Sample Credit Card Sale"
 +        Details.Amount = 1.05
 +        Details.AmountSpecified = True
 +
 +
 +        Dim response As usaepay.TransactionResponse
 +        response = New usaepay.TransactionResponse
 +
 +       
 +        response = client.runCustomerTransaction(token,​ custnum, Details, "​Sale",​ paymentMethodID)
 +        MessageBox.Show(String.Concat(response.Result))
 +</​code>​
 +
 +==== .NET C# ====
 +<code c>
 +string custNum = "​109100";​
 +            string paymentMethodID = "​48";​
 +
 +            usaepay.TransactionDetail tran = new usaepay.TransactionDetail();​
 +            tran.Invoice = "​123456";​
 +            tran.Description = "​Sample Credit Card Sale";
 +            tran.Amount = 1.05;
 +            tran.AmountSpecified = true;
 +
 +            usaepay.TransactionResponse response = new usaepay.TransactionResponse();​
 +
 +            try
 +            {
 +                response = client.runCustomerTransaction(token,​ custNum, tran, "​sale",​ paymentMethodID);​
 +                MessageBox.Show(string.Concat(response.Result));​
 +            }
 +
 +            catch (Exception err)
 +            {
 +                MessageBox.Show(err.Message);​
 +            }
 </​code>​ </​code>​
developer/soap-1.1/methods/runcustomertransaction.txt ยท Last modified: 2010/10/21 15:23 by irina

Page Tools