developer:soap-1.1:methods:gettransactioncustom

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:methods:gettransactioncustom [2009/06/24 13:39]
charlie created
developer:soap-1.1:methods:gettransactioncustom [2010/10/21 12:37]
irina
Line 149: Line 149:
  
 ?>  ?> 
 +</​code>​
 +
 +==== .NET VB ====
 +<code vb>
 +Dim transaction As usaepay.TransactionRequestObject = New usaepay.TransactionRequestObject
 +
 +        Dim refnum As Integer
 +
 +        refnum = "​47084726"​
 +
 +        Dim fields(0 To 2) As String
 +
 +        fields(0) = "​Details.Amount"​
 +        fields(1) = "​AccountHolder"​
 +        fields(2) = "​CreditCardData.AvsStreet"​
 +
 +        Dim tran(0 To 2) As usaepay.FieldValue
 +        For i As Integer = 0 To 2
 +            tran(i) = New usaepay.FieldValue()
 +        Next i
 +
 +        tran = client.getTransactionCustom(token,​ refnum, fields)
 +        MsgBox(tran(0).Value & " " & tran(1).Value & " " & tran(2).Value)
 +</​code>​
 +
 +==== .NET C# ====
 +<code c>
 +string refnum;
 +            string[] fields = new string[3];
 +
 +            fields[0] = "​Details.Amount";​
 +            fields[1] = "​AccountHolder";​
 +            fields[2] = "​CreditCardData.AvsStreet";​
 +
 +            refnum = "​47027872";​
 +
 +            usaepay.FieldValue[] tran = new usaepay.FieldValue[3];​
 +
 +            for (int i = 0; i < 3; i++)
 +            {
 +                tran[i] = new usaepay.FieldValue();​
 +            }
 +
 +            try
 +            {
 +                tran = client.getTransactionCustom(token,​ refnum,​fields);​
 +
 +                    MessageBox.Show(string.Concat("​Transaction Approved, RefNum: ",
 +                            tran[0].Field,"​ = ",​tran[0].Value,​ " ",
 +                            tran[0].Field,"​ = ",​tran[1].Value,​ " ",
 +                            tran[0].Field,"​ = ",​tran[2].Value));​
 +              ​
 +            }
 +
 +
 +            catch (Exception err)
 +            {
 +                MessageBox.Show(err.Message);​
 +            }
 </​code>​ </​code>​
  
developer/soap-1.1/methods/gettransactioncustom.txt ยท Last modified: 2010/10/21 12:37 by irina

Page Tools