developer:soap-1.2:methods:runauthonly

Differences

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

Link to this comparison view

developer:soap-1.2:methods:runauthonly [2010/02/12 10:31]
epouchak created
developer:soap-1.2:methods:runauthonly [2010/10/19 11:21] (current)
irina
Line 113: Line 113:
     System.out.println("​Soap Exception: " + e.getMessage());​     System.out.println("​Soap Exception: " + e.getMessage());​
 } }
 +</​code>​
 +
 +==== .NET VB ====
 +<code vb>
 +Dim tran As usaepay.TransactionRequestObject = New usaepay.TransactionRequestObject
 +
 +        tran.CreditCardData = New usaepay.CreditCardData
 +        tran.CreditCardData.CardNumber = "​4444555566667779"​
 +        tran.CreditCardData.CardExpiration = "​0913"​
 +        tran.CreditCardData.CardCode = "​999"​
 +
 +        tran.Details = New usaepay.TransactionDetail
 +        tran.Details.Amount = 9.02
 +        tran.Details.AmountSpecified = True
 +        tran.Details.Invoice = "​434534"​
 +        tran.Details.Description = "​Example transaction"​
 +
 +        Dim response As usaepay.TransactionResponse
 +
 +        response = client.runAuthOnly(token,​ tran)
 +
 +        If response.ResultCode = "​A"​ Then
 +            MsgBox("​Transaction Approved, Refernce Number: " & response.RefNum)
 +        ElseIf response.ResultCode = "​D"​ Then
 +            MsgBox("​Transaction Declined, Reason: " & response.Error)
 +        Else
 +            MsgBox("​Transaction Error, Reason: " & response.Error)
 +        End If
 </​code>​ </​code>​
  
developer/soap-1.2/methods/runauthonly.txt ยท Last modified: 2010/10/19 11:21 by irina

Page Tools