EPBank Type
Contains the customer's bank routing and account information.
Remarks
This type contains the customer's bank account information, and is used for electronic check transactions authorized by the ECheck bean. The information contained by this type includes the customer's AccountNumber, the RoutingNumber (or ABA number) to his bank, the Name of the bank, and the AccountType (Checking or Savings). These may be set using the fields, or via the constructors.
Example: Setting the Fields
EPBank bank = new EPBank(); bank.AccountNumber = "9999967"; bank.RoutingNumber = "005300065"; bank.AccountType = acctChecking; bank.Name = "Wachovia"; bank.AccountHolderName = "John Smith" ECheck1.Bank = bank;
Example: Using the Constructors:
ECheck1.Bank = new EPBank("9999967", "005300065", acctChecking, "Wachovia", "John Smith");
Fields
AccountClass int |
Indicates whether a personal or business account is used for this transaction. Available values:
| ||||||
AccountHolderName String |
Account holder's name. This field contains the customer's name as it appears on their account. Many gateways use this field in addition to, or instead of, the Customer Firsts and Last name fields. Note that if this field is not specified, the FullName field from the EPCustomer type will be used instead. | ||||||
AccountNumber String |
Bank account number for ACH transactions. This field contains the customer's bank account number, which along with the RoutingNumber identify the location of the account where funds are to be drawn from for ACH transactions. This field is required for all ACH transactions. | ||||||
AccountType int |
Indicates whether a checking or savings account is used for this transaction. For gateways that support it, this field allows funds to be withdrawn (or added in the case of a Credit) from either the customer's Checking or Savings account. Available values:
| ||||||
Name String |
Name of the account holder's bank. For example, Citibank, Wells-Fargo, Wachovia, etc. This field contains the name of the bank associated with the RoutingNumber. | ||||||
RoutingNumber String |
Routing number for ACH transactions. This field contains the routing number to the customer's bank (Also known as an ABA code). This number indicates at which bank the AccountNumber is located, and is used to identify the location of the account where funds are to be drawn from for ACH transactions. This field is required for all ACH transactions. Note: When using ACHPayments gateway, a leading zero must be added for Canadian bank accounts using. |
Constructors
public EPBank();
public EPBank(String routingNumber, String accountNumber, int accountClass, int accountType);
public EPBank(String routingNumber, String accountNumber, int accountClass, int accountType, String name, String accountHolderName);