developer:soap-1.1:methods:runquickcredit

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:runquickcredit [2009/06/24 13:32]
charlie created
developer:soap-1.1:methods:runquickcredit [2010/09/29 13:59]
irina
Line 24: Line 24:
  
 |[[developer:​soap:​objects:​TransactionResponse]] ​ |Returns a TransactionResponse object containing the results of the transaction and all relevant data. | |[[developer:​soap:​objects:​TransactionResponse]] ​ |Returns a TransactionResponse object containing the results of the transaction and all relevant data. |
 +
 +===== Examples =====
 +==== .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>​
  
 ===== Change History ===== ===== Change History =====
developer/soap-1.1/methods/runquickcredit.txt ยท Last modified: 2010/10/21 11:30 by irina

Page Tools