developer:soap-1.3:methods:refundtransaction

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
developer:soap-1.3:methods:refundtransaction [2010/08/06 15:51]
epouchak
developer:soap-1.3:methods:refundtransaction [2010/10/05 12:55]
irina
Line 77: Line 77:
 } }
 </​code>​ </​code>​
 +
 +==== .NET VB ====
 +<code vb>
 +Dim refnum As String
 +        Dim amount As Double
 +        refnum = 47061257
 +        amount = 9.02
 +
 +        Dim response As usaepay.TransactionResponse
 +        response = client.refundTransaction(token,​ refnum, amount)
 +
 +        If response.ResultCode = "​A"​ Then
 +            MsgBox("​Transaction Refunded, Reference Number: " & response.RefNum)
 +        Else
 +            MsgBox("​Transaction Error, Reason: " & response.Error)
 +        End If
 +</​code>​
 +
 +==== .NET C# ====
 +<code c>
 +string refnum;
 +            double amount;
 +
 +            refnum = "​46998404";​
 +            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>​
 +
 ==== XML ==== ==== XML ====
  
developer/soap-1.3/methods/refundtransaction.txt ยท Last modified: 2010/10/05 12:55 by irina

Page Tools