Skip to content

Commit 9060474

Browse files
authored
Merge branch 'master' into PR1992-samplecode-changes
2 parents 420b850 + ca47e55 commit 9060474

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

PaymentTransactions/DebitBankAccount.cs

+10-5
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,18 @@ public static ANetApiResponse Run(String ApiLoginID, String ApiTransactionKey, d
2424
Item = ApiTransactionKey
2525
};
2626

27+
Random rand = new Random();
28+
int randomAccountNumber = rand.Next(10000, int.MaxValue);
29+
2730
var bankAccount = new bankAccountType
2831
{
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"
3439
};
3540
// standard api call to retrieve response
3641
var paymentType = new paymentType { Item = bankAccount };

0 commit comments

Comments
 (0)