developer:soap-1.3:methods:gettransactioncustom

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
developer:soap-1.3:methods:gettransactioncustom [2010/08/06 16:55]
epouchak
developer:soap-1.3:methods:gettransactioncustom [2010/10/05 13:08]
irina
Line 173: Line 173:
 } }
 </​code>​ </​code>​
 +
 +==== .NET VB ====
 +<code vb>
 +Dim refnum As String
 +        refnum = 46976537
 +        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 = "​47000101";​
 +
 +            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>​
 +
 ==== XML ==== ==== XML ====
  
developer/soap-1.3/methods/gettransactioncustom.txt ยท Last modified: 2010/10/05 13:08 by irina

Page Tools