developer:soap-1.3:methods:runcheckcredit

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Last revision Both sides next revision
developer:soap-1.3:methods:runcheckcredit [2010/08/06 12:06]
epouchak
developer:soap-1.3:methods:runcheckcredit [2010/08/25 16:00]
epouchak
Line 113: Line 113:
 } }
 </​code>​ </​code>​
- 
 ==== Visual Basic (.Net) ==== ==== Visual Basic (.Net) ====
  
Line 119: Line 118:
  
 <code vb> <code vb>
-Dim transaction ​As usaepay.TransactionRequestObject  + Dim client ​As usaepay.usaepayService ​= New usaepay.usaepayService 
-transaction ​= New usaepay.TransactionRequestObject+        Dim token As usaepay.ueSecurityToken
  
-transaction.CheckData ​New usaepay.CheckData +        token Me.CreateToken("rGzC0rJ8B9RDj8Wm96GrYokgZIRe4eWF""1234")
-transaction.CheckData.Account = "1112223333" +
-transaction.CheckData.Routing = "​123456789"​ +
-transaction.CheckData.DriversLicense = "​D5555555"​ +
-transaction.CheckData.DriversLicenseState = "CA"+
  
-transaction.Details = New usaepay.TransactionDetail 
-transaction.Details.Amount = "​1.00"​ 
-transaction.Details.AmountSpecified = True 
-transaction.Details.Invoice = "​55555"​ 
-transaction.Details.Description = "Test Check Sale" 
  
-transaction.AccountHolder ​"Test Guy"+        Dim transaction ​As usaepay.TransactionRequestObject ​New usaepay.TransactionRequestObject
  
-Dim response As usaepay.TransactionResponse+        transaction.CheckData = New usaepay.CheckData 
 +        transaction.CheckData.Account = "​1112223333"​ 
 +        transaction.CheckData.Routing = "​123456789"​ 
 +        transaction.CheckData.DriversLicense = "​D5555555"​ 
 +        transaction.CheckData.DriversLicenseState = "​CA"​
  
-response ​client.runCheckCredit(token, ​transaction)+        transaction.Details ​New usaepay.TransactionDetail 
 +        ​transaction.Details.Amount = "​1.00"​ 
 +        transaction.Details.AmountSpecified = True 
 +        transaction.Details.Invoice = "​55555"​ 
 +        transaction.Details.Description = "Test Check Sale"
  
-If response.ResultCode = "​A"​ Then +        transaction.AccountHolder = "Test Guy" 
-MsgBox("​Transaction Approved, Reference Number: " & response.RefNum) + 
-ElseIf response.ResultCode = "​D"​ Then +        Dim response As usaepay.TransactionResponse 
-MsgBox("​Transaction Declined, Reason: " & response.Error) + 
-Else +        response = client.runCheckCredit(token,​ transaction) 
-MsgBox("​Transaction Error, Reason: " & response.Error) + 
-End If+        ​If response.ResultCode = "​A"​ Then 
 +            MsgBox("​Transaction Approved, Reference 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>​
 +
 ==== XML ==== ==== XML ====
  
developer/soap-1.3/methods/runcheckcredit.txt · Last modified: 2010/08/26 15:22 by irina

Page Tools