@@ -26,13 +26,16 @@ public static ANetApiResponse Run(String ApiLoginID, String ApiTransactionKey, s
26
26
27
27
var bankAccount = new bankAccountType
28
28
{
29
- accountNumber = "4111111" ,
30
- routingNumber = "325070760" ,
31
- echeckType = echeckTypeEnum . WEB , // change based on how you take the payment (web, telephone, etc)
32
- nameOnAccount = "Test Name"
29
+ accountType = bankAccountTypeEnum . checking ,
30
+ routingNumber = "121042882" ,
31
+ accountNumber = "1234567890" ,
32
+ nameOnAccount = "John Doe" ,
33
+ echeckType = echeckTypeEnum . WEB , // change based on how you take the payment (web, telephone, etc)
34
+ bankName = "Wells Fargo Bank NA" ,
35
+ // checkNumber = "101" // needed if echeckType is "ARC" or "BOC"
33
36
} ;
34
37
35
- //standard api call to retrieve response
38
+ // standard api call to retrieve response
36
39
var paymentType = new paymentType { Item = bankAccount } ;
37
40
38
41
var transactionRequest = new transactionRequestType
@@ -52,7 +55,7 @@ public static ANetApiResponse Run(String ApiLoginID, String ApiTransactionKey, s
52
55
// get the response from the service (errors contained if any)
53
56
var response = controller . GetApiResponse ( ) ;
54
57
55
- //validate
58
+ // validate response
56
59
if ( response != null )
57
60
{
58
61
if ( response . messages . resultCode == messageTypeEnum . Ok )
0 commit comments