developer:soap-1.1: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
developer:soap-1.1:methods:runcheckcredit [2010/09/29 13:27]
irina
developer:soap-1.1:methods:runcheckcredit [2010/10/21 11:28]
irina
Line 27: Line 27:
  
 ===== Examples ===== ===== Examples =====
 +==== .NET VB ====
 +<code vb>
 +Dim transaction As usaepay.TransactionRequestObject = New usaepay.TransactionRequestObject
 +
 +        transaction.CheckData = New usaepay.CheckData
 +        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 response As usaepay.TransactionResponse
 +
 +        response = client.runCheckCredit(token,​ transaction)
 +
 +        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>​
 +
 ==== .NET C# ==== ==== .NET C# ====
 <code c> <code c>
developer/soap-1.1/methods/runcheckcredit.txt ยท Last modified: 2010/10/21 11:28 by irina

Page Tools