developer:soap-1.3:methods:gettransactionstatus

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
developer:soap-1.3:methods:gettransactionstatus [2010/08/06 16:44]
epouchak
developer:soap-1.3:methods:gettransactionstatus [2010/08/30 09:24] (current)
irina
Line 120: Line 120:
     End If     End If
 </​code>​ </​code>​
 +
 +==== .NET C# ====
 +<code c>
 +string refnum;
 +            refnum = "​47000101";​
 +
 +            usaepay.TransactionResponse response = new usaepay.TransactionResponse();​
 +
 +            try
 +            {
 +                response = client.getTransactionStatus(token,​ refnum);
 +                if (response.StatusCode == "​V"​) { MessageBox.Show(string.Concat("​Status:​ Voided"​));​ }
 +                if (response.StatusCode == "​B"​) {MessageBox.Show(string.Concat("​Status:​ Submitted"​));​}
 +                if (response.StatusCode == "​E"​) {MessageBox.Show(string.Concat("​Status:​ Error, Reason: " + response.Error));​}
 +                if (response.StatusCode == "​N"​) {MessageBox.Show(string.Concat("​Status:​ New transaction"​));​}
 +                if (response.StatusCode == "​F"​) {MessageBox.Show(string.Concat("​Status:​ Funded"​));​}
 +                if (response.StatusCode == "​S"​) {MessageBox.Show(string.Concat("​Status:​ Settled"​));​}
 +                if (response.StatusCode == "​P"​) {MessageBox.Show(string.Concat("​Status:​ Pending"​));​}
 +                if (response.StatusCode == "​T"​) {MessageBox.Show(string.Concat("​Status:​ Timed Out (no response in 5 days)"​));​}
 +                if (response.StatusCode == "​R"​) {MessageBox.Show(string.Concat("​Status:​ Returned"​));​}
 +                if (response.StatusCode == "​M"​) { MessageBox.Show(string.Concat("​Status:​ On hold"​));​ }
 +            }
 +            catch (Exception err)
 +            {
 +                MessageBox.Show(err.Message);​
 +
 +            }
 +</​code>​
 +
 ==== XML ==== ==== XML ====
  
developer/soap-1.3/methods/gettransactionstatus.txt ยท Last modified: 2010/08/30 09:24 by irina

Page Tools