developer:soap-1.1:methods:voidtransaction

Differences

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

Link to this comparison view

developer:soap-1.1:methods:voidtransaction [2009/06/24 13:37]
charlie created
developer:soap-1.1:methods:voidtransaction [2010/09/29 14:22] (current)
irina
Line 99: Line 99:
         MsgBox("​An error occured."​)         MsgBox("​An error occured."​)
     End If     End If
 +</​code>​
 +
 +==== .NET C# ====
 +<code c>
 +usaepay.TransactionRequestObject tran = new usaepay.TransactionRequestObject();​
 +
 +            string refnum;
 +            Boolean response;
 +
 +            refnum = "​47045214";​
 +
 +            try
 +            {
 +                response = client.voidTransaction(token,​ refnum);
 +
 +                if (response == true)
 +                {
 +                    MessageBox.Show(string.Concat("​Transaction voided"​));​
 +                }
 +                else
 +                {
 +                    MessageBox.Show(string.Concat("​An error occured"​));​
 +                }
 +            }
 +            catch (Exception err)
 +            {
 +                MessageBox.Show(err.Message);​
 +
 +            }
 </​code>​ </​code>​
  
developer/soap-1.1/methods/voidtransaction.txt ยท Last modified: 2010/09/29 14:22 by irina

Page Tools