developer:soap-1.1:objects:transactionresponse

Differences

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

Link to this comparison view

Next revision
Previous revision
developer:soap-1.1:objects:transactionresponse [2009/06/24 14:11]
charlie created
developer:soap-1.1:objects:transactionresponse [2010/10/22 17:10]
irina
Line 58: Line 58:
  
 ===== Examples ===== ===== Examples =====
 +==== .NET VB ====
 +<code vb>
 +Dim response As usaepay.TransactionResponse
 + 
 +response = client.runTransaction(token,​ tran)
 + 
 +MsgBox("​Reference Number: " & response.RefNum)
  
  
 +</​code>​
 +
 +==== .NET C# ====
 +<code c>
 + ​usaepay.TransactionResponse response = new usaepay.TransactionResponse();​
 + 
 +            try
 +            {
 +                response = client.runTransaction(token,​ tran);
 + 
 +                if (response.ResultCode == "​A"​)
 +                {
 +                    MessageBox.Show(string.Concat("​Transaction Approved, RefNum: ",
 +                            response.RefNum));​
 +                }
 +                else
 +                {
 +                    MessageBox.Show(string.Concat("​Transaction Failed: ",
 +                            response.Error));​
 +                }
 +            }
 +
 +</​code>​
 +
 +==== XML ====
 <code xml> <code xml>
 <​Response xsi:​type="​ns1:​TransactionResponse">​ <​Response xsi:​type="​ns1:​TransactionResponse">​
developer/soap-1.1/objects/transactionresponse.txt ยท Last modified: 2010/10/22 17:10 by irina

Page Tools