@@ -24,13 +24,18 @@ public static ANetApiResponse Run(String ApiLoginID, String ApiTransactionKey, d
24
24
Item = ApiTransactionKey
25
25
} ;
26
26
27
+ Random rand = new Random ( ) ;
28
+ int randomAccountNumber = rand . Next ( 10000 , int . MaxValue ) ;
29
+
27
30
var bankAccount = new bankAccountType
28
31
{
29
- accountNumber = "4111111" ,
30
- routingNumber = "122235821" ,
31
- //echeckType = echeckTypeEnum.WEB, // change based on how you take the payment (web, telephone, etc)
32
- nameOnAccount = "John Doe" ,
33
- accountType = bankAccountTypeEnum . checking
32
+ accountType = bankAccountTypeEnum . checking ,
33
+ routingNumber = "125008547" ,
34
+ accountNumber = randomAccountNumber . ToString ( ) ,
35
+ nameOnAccount = "John Doe" ,
36
+ echeckType = echeckTypeEnum . WEB , // change based on how you take the payment (web, telephone, etc)
37
+ bankName = "Wells Fargo Bank NA" ,
38
+ // checkNumber = "101" // needed if echeckType is "ARC" or "BOC"
34
39
} ;
35
40
// standard api call to retrieve response
36
41
var paymentType = new paymentType { Item = bankAccount } ;
0 commit comments