Skip to content

Commit 98c1970

Browse files
committed
update bank account information
1 parent 750a606 commit 98c1970

File tree

2 files changed

+12
-9
lines changed

2 files changed

+12
-9
lines changed

PaymentTransactions/CreditBankAccount.cs

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,16 @@ public static ANetApiResponse Run(String ApiLoginID, String ApiTransactionKey, s
2626

2727
var bankAccount = new bankAccountType
2828
{
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"
3336
};
3437

35-
//standard api call to retrieve response
38+
// standard api call to retrieve response
3639
var paymentType = new paymentType { Item = bankAccount };
3740

3841
var transactionRequest = new transactionRequestType
@@ -52,7 +55,7 @@ public static ANetApiResponse Run(String ApiLoginID, String ApiTransactionKey, s
5255
// get the response from the service (errors contained if any)
5356
var response = controller.GetApiResponse();
5457

55-
//validate
58+
// validate response
5659
if (response != null)
5760
{
5861
if (response.messages.resultCode == messageTypeEnum.Ok)

PaymentTransactions/DebitBankAccount.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,14 @@ public static ANetApiResponse Run(String ApiLoginID, String ApiTransactionKey, d
2828
{
2929
accountType = bankAccountTypeEnum.checking,
3030
routingNumber = "121042882",
31-
accountNumber = "123456789",
31+
accountNumber = "1234567890",
3232
nameOnAccount = "John Doe",
3333
echeckType = echeckTypeEnum.WEB, // change based on how you take the payment (web, telephone, etc)
3434
bankName = "Wells Fargo Bank NA",
3535
// checkNumber = "101" // needed if echeckType is "ARC" or "BOC"
3636
};
3737

38-
//standard api call to retrieve response
38+
// standard api call to retrieve response
3939
var paymentType = new paymentType { Item = bankAccount };
4040

4141
var transactionRequest = new transactionRequestType
@@ -54,7 +54,7 @@ public static ANetApiResponse Run(String ApiLoginID, String ApiTransactionKey, d
5454
// get the response from the service (errors contained if any)
5555
var response = controller.GetApiResponse();
5656

57-
//validate
57+
// validate response
5858
if (response != null)
5959
{
6060
if (response.messages.resultCode == messageTypeEnum.Ok)

0 commit comments

Comments
 (0)