developer:soap-1.1:methods:runcustomertransaction

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:runcustomertransaction [2009/06/24 13:46]
charlie created
developer:soap-1.1:methods:runcustomertransaction [2010/09/30 12:16]
irina
Line 64: Line 64:
  
 ?>  ?> 
 +</​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