developer:soap-1.2:methods:runquickcredit

Differences

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

Link to this comparison view

developer:soap-1.2:methods:runquickcredit [2010/02/12 10:36]
epouchak created
developer:soap-1.2:methods:runquickcredit [2010/09/15 16:01] (current)
irina
Line 128: Line 128:
 </​code>​ </​code>​
  
 +==== .NET C# ====
 +<code c>
 +usaepay.TransactionDetail details = new usaepay.TransactionDetail();​
 +
 +            string refnum;
 +
 +            refnum = "​46973415";​
 +
 +            details.Amount = 34.50;
 +            details.AmountSpecified = true;
 +            details.Description = "​Example QuickCredit";​
 +            details.Invoice = "​123456";​
 +
 +            usaepay.TransactionResponse response = new usaepay.TransactionResponse();​
 +
 +            try
 +            {
 +                response = client.runQuickCredit(token,​ refnum, details);
 +
 +                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>​
  
 ==== XML ==== ==== XML ====
developer/soap-1.2/methods/runquickcredit.txt ยท Last modified: 2010/09/15 16:01 by irina

Page Tools