developer:soap-1.3:methods:runquickcredit

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:runquickcredit [2010/08/06 12:20]
epouchak
developer:soap-1.3:methods:runquickcredit [2010/08/26 15:24] (current)
irina
Line 127: Line 127:
     End If     End If
 </​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.3/methods/runquickcredit.txt ยท Last modified: 2010/08/26 15:24 by irina

Page Tools