developer:soap-1.3:methods:runchecksale

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:runchecksale [2010/08/06 11:14]
vladg
developer:soap-1.3:methods:runchecksale [2010/08/25 15:47]
epouchak
Line 123: Line 123:
 } }
 </​code>​ </​code>​
- 
 ==== VB ==== ==== VB ====
 <code vb> <code vb>
 +Dim client As usaepay.usaepayService = New usaepay.usaepayService
 +        Dim token As usaepay.ueSecurityToken
  
-    Dim client As usaepay.usaepayService ​New usaepay.usaepayService +        token Me.CreateToken("​rGzC0rJ8B9RDj8Wm96GrYokgZIRe4eWF",​ "​1234"​)
-    Dim token As usaepay.ueSecurityToken+
  
-    token = Me.CreateToken("​982lz9VsLm87MA54Sv8E582h8OZMArL6",​ "​443311"​) +        ​Dim transaction As usaepay.TransactionRequestObject = New usaepay.TransactionRequestObject
- +
-    ​Dim transaction As usaepay.TransactionRequestObject = New usaepay.TransactionRequestObject +
- +
-      transaction.CheckData = New usaepay.CheckData+
  
 +        transaction.CheckData = New usaepay.CheckData
         transaction.CheckData.Account = "​1112223333"​         transaction.CheckData.Account = "​1112223333"​
         transaction.CheckData.Routing = "​123456789"​         transaction.CheckData.Routing = "​123456789"​
Line 141: Line 138:
         transaction.CheckData.DriversLicenseState = "​CA"​         transaction.CheckData.DriversLicenseState = "​CA"​
  
-      ​transaction.Details = New usaepay.TransactionDetail +        ​transaction.Details = New usaepay.TransactionDetail
         transaction.Details.Amount = "​1.00"​         transaction.Details.Amount = "​1.00"​
         transaction.Details.AmountSpecified = True         transaction.Details.AmountSpecified = True
Line 148: Line 144:
         transaction.Details.Description = "Test Check Sale"         transaction.Details.Description = "Test Check Sale"
  
-      ​transaction.AccountHolder = "Test Guy"+        ​transaction.AccountHolder = "Test Guy"
  
-    ​Dim response As usaepay.TransactionResponse = New usaepay.TransactionResponse+        ​Dim response As usaepay.TransactionResponse = New usaepay.TransactionResponse
  
-    ​response = client.runCheckSale(token,​ transaction) +        ​response = client.runCheckSale(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+
  
 +        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>​
  
Line 205: Line 200:
             }             }
 </​code>​ </​code>​
- 
 ==== XML ==== ==== XML ====
 <code xml> <code xml>
Line 216: Line 210:
 <​ns1:​runCheckSale>​ <​ns1:​runCheckSale>​
 <Token xsi:​type="​ns1:​ueSecurityToken">​ <Token xsi:​type="​ns1:​ueSecurityToken">​
- <​ClientIP xsi:​type="​xsd:​string">​192.168.0.1</​ClientIP>​ +<​ClientIP xsi:​type="​xsd:​string">​192.168.0.1</​ClientIP>​ 
- <​PinHash xsi:​type="​ns1:​ueHash">​ +<PinHash xsi:​type="​ns1:​ueHash">​ 
- <​HashValue xsi:​type="​xsd:​string">​673d067b9e414b11d3be405d3537fbf7bc359ffa</​HashValue>​ +<​HashValue xsi:​type="​xsd:​string">​11ac55b0a0b59f8f028dbf85bc32266fa973dd0e</​HashValue>​ 
- <Seed xsi:​type="​xsd:​string">​12045764872012320491</​Seed>​ +<Seed xsi:​type="​xsd:​string">​12678150211876663375</​Seed>​ 
- <Type xsi:​type="​xsd:​string">​sha1</​Type>​ +<Type xsi:​type="​xsd:​string">​sha1</​Type>​ 
- </​PinHash>​ +</​PinHash>​ 
- <​SourceKey xsi:​type="​xsd:​string">​nE3D6frKFj27U9ug1Yd2366e0062hepS</​SourceKey>​+<​SourceKey xsi:​type="​xsd:​string">​HB4P7C4K2w2ZCQQQXRqrxDj6agrS2NIT</​SourceKey>​
 </​Token>​ </​Token>​
 <Params xsi:​type="​ns1:​TransactionRequestObject">​ <Params xsi:​type="​ns1:​TransactionRequestObject">​
Line 250: Line 244:
 ^ Version ^ Change ^ ^ Version ^ Change ^
 | 1.0 | Method added in soap v1.0 | | 1.0 | Method added in soap v1.0 |
- 
- 
developer/soap-1.3/methods/runchecksale.txt · Last modified: 2010/08/25 15:47 by epouchak

Page Tools