developer:soap-1.1:methods:refundtransaction

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:refundtransaction [2009/06/24 13:36]
charlie created
developer:soap-1.1:methods:refundtransaction [2010/09/29 14:15]
irina
Line 28: Line 28:
  
 |[[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. |
 +
 +==== .NET C# ====
 +<code c>
 +string refnum;
 +            double amount;
 +
 +            refnum = "​47045250";​
 +            amount = 1.00;
 +
 +            usaepay.TransactionResponse response = new usaepay.TransactionResponse();​
 +
 +            try
 +            {
 +                response = client.refundTransaction(token,​ refnum, amount);
 +
 +                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/refundtransaction.txt ยท Last modified: 2010/10/21 12:00 by irina

Page Tools