developer:soap-1.3:methods:gettransactionstatus

Differences

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

Link to this comparison view

Next revision
Previous revision
developer:soap-1.3:methods:gettransactionstatus [2010/06/01 16:07]
hmcgowan created
developer:soap-1.3:methods:gettransactionstatus [2010/08/30 09:24]
irina
Line 119: Line 119:
       MsgBox("​Status:​ On Hold")       MsgBox("​Status:​ On Hold")
     End If     End If
 +</​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>​ </​code>​
  
Line 132: Line 160:
 <​SOAP-ENV:​Body> ​ <​SOAP-ENV:​Body> ​
 <​ns1:​getTransactionStatus> ​ <​ns1:​getTransactionStatus> ​
-<Token xsi:​type="​ns1:​ueSecurityToken">​  +<Token xsi:​type="​ns1:​ueSecurityToken">​ 
-<​ClientIP xsi:​type="​xsd:​string">​192.168.0.1</​ClientIP>​  +<​ClientIP xsi:​type="​xsd:​string">​192.168.0.1</​ClientIP>​ 
-<PinHash xsi:​type="​ns1:​ueHash">​  +<PinHash xsi:​type="​ns1:​ueHash">​ 
-<​HashValue xsi:​type="​xsd:​string">​e4a3cef16854af8c6495a4394050ed4c64af97ed</​HashValue>​  +<​HashValue xsi:​type="​xsd:​string">​11ac55b0a0b59f8f028dbf85bc32266fa973dd0e</​HashValue>​ 
-<Seed xsi:​type="​xsd:​string">​1193689131266474060</​Seed>​  +<Seed xsi:​type="​xsd:​string">​12678150211876663375</​Seed>​ 
-<Type xsi:​type="​xsd:​string">​sha1</​Type>​  +<Type xsi:​type="​xsd:​string">​sha1</​Type>​ 
-</​PinHash>​  +</​PinHash>​ 
-<​SourceKey xsi:​type="​xsd:​string">​HB4P7C4K2w2ZCQQQXRqrxDj6agrS2NIT</​SourceKey> ​+<​SourceKey xsi:​type="​xsd:​string">​HB4P7C4K2w2ZCQQQXRqrxDj6agrS2NIT</​SourceKey>​
 </​Token> ​ </​Token> ​
 <RefNum xsi:​type="​xsd:​integer">​1118418</​RefNum> ​ <RefNum xsi:​type="​xsd:​integer">​1118418</​RefNum> ​
 </​ns1:​getTransactionStatus> ​ </​ns1:​getTransactionStatus> ​
 </​SOAP-ENV:​Body> ​ </​SOAP-ENV:​Body> ​
-</​SOAP-ENV:​Envelope> ​+</​SOAP-ENV:​Envelope>​
 </​code>​ </​code>​
developer/soap-1.3/methods/gettransactionstatus.txt · Last modified: 2010/08/30 09:24 by irina

Page Tools