developer:soap-1.3:methods:runquicksale

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
developer:soap-1.3:methods:runquicksale [2010/08/25 16:03]
epouchak
developer:soap-1.3:methods:runquicksale [2010/08/26 15:24] (current)
irina
Line 131: Line 131:
             MsgBox("​Transaction Error, Reason: " & response.Error)             MsgBox("​Transaction Error, Reason: " & response.Error)
         End If         End If
 +</​code>​
 +
 +==== .NET C# ====
 +<code c>
 +usaepay.TransactionDetail details = new usaepay.TransactionDetail();​
 +
 +            string refnum;
 +            bool authonly;
 +
 +            refnum = "​46973415";​
 +            authonly = false;
 +
 +            details.Amount = 34.50;
 +            details.AmountSpecified = true;
 +            details.Description = "​Example QuickSale";​
 +            details.Invoice = "​123456";​
 +
 +            usaepay.TransactionResponse response = new usaepay.TransactionResponse();​
 +
 +            try
 +            {
 +                response = client.runQuickSale(token,​ refnum, details, authonly);
 +
 +                if (response.ResultCode == "​A"​)
 +                {
 +                    MessageBox.Show(string.Concat("​Transaction Approved, RefNum: ",
 +                    response.RefNum));​
 +                }
 +                else
 +                {
 +                    MessageBox.Show(string.Concat("​Transaction Failed: ",
 +                    response.Error));​
 +                }
 +            }
 +            catch (Exception err)
 +            {
 +                MessageBox.Show(err.Message);​
 +
 +            }
 +
 +
 </​code>​ </​code>​
  
developer/soap-1.3/methods/runquicksale.txt ยท Last modified: 2010/08/26 15:24 by irina

Page Tools