developer:soap-1.2:methods:voidtransaction

Differences

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

Link to this comparison view

developer:soap-1.2:methods:voidtransaction [2010/02/12 10:40]
epouchak created
developer:soap-1.2:methods:voidtransaction [2010/08/06 15:21] (current)
irina
Line 101: Line 101:
         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 = "​46973526";​
 +
 +            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.2/methods/voidtransaction.txt ยท Last modified: 2010/08/06 15:21 by irina

Page Tools