VerifyMode Property
Determines how the totals in the Batch and File control records are validated.
Syntax
public int getVerifyMode(); public void setVerifyMode(int verifyMode);
Enumerated values: public final static int vmValidateTotals = 0; public final static int vmComputeTotals = 1; public final static int vmNoValidation = 2;
Remarks
Batch Control Records contain several fields that provide information about each batch included in the ACH file. These include an Entry Count (number of records in the batch), Credit Total (total funds added to the merchant's account), Debit Total (total of funds removed from the merchant's account), and a hash used to verify that there are no missing transactions. The ending File Control record contains similar information about the entire batch The final record in an ACH file is the File Control Record. This record contains several fields that provide information about all of the batches and all of the transactions in the ACH file. These fields are exposed in the following properties:
FileBatchCount | Total number of batches contained in this ACH File. |
FileBlockCount | Total number of blocks (each block consists of 960 characters). |
FileCreditTotal | Gross amount of funds deposited into the merchant's account. |
FileDebitTotal | Gross amount of funds removed from the merchant's account |
FileEntryCount | Total number of entries in the file (sum of all entries in each batch) |
FileEntryHash | Used to validate that there are no transactions missing from the file |
There are similar fields for each of the batches contained within the ACH file, but only the final totals are exposed. The bean carefully computes these values as the input is parsed, and the table below shows how they are validated:
Verify Mode | Description |
vmValidateTotals (0) | The totals listed in each control record in the file are compared against the totals that the bean computes itself. If there is any mismatch, the bean fails with an error. |
vmComputeTotals (1) | The totals listed in each control record in the file are ignored. The values computed by the bean are substituted. This is useful when adding or removing records from the ACH or XML files. |
vmNoValidation (2) | No validation is performed. The values in the file are used, and the computed values are ignored. |
Default Value
0