How dbhat93/payment-file-demo works
payment-file-demo is a synthetic ACH/X9.37 demonstration, not a production payment processor. Its main workflow is generating or supplying sample payment files, validating them with the Go checker, and comparing an older ACH reader with a reference reader; returns can also be matched to original payments. An outbound-write hook automatically invokes validation. The earlier COBOL extract exercise is explicitly outside the demo and is omitted. The live new_ach.py described in the README is absent from the tree, so the graph uses only the available reference implementation.
Main entry points: main.go File checker · run_eval.py Evaluation runner · ach ACH samples · compare.py Reader comparator
Components 14
Payment files
- ACH samples
samples/ach - X9.37 samples
samples/x937 - ACH generator
harness/gen_ach.py
Validation
- File checker
checker/main.go - Outbound files
outbound - Write hook
scripts/validate_payment_file.py
Reader comparison
- Legacy ACH reader
legacy/old_ach.py - ACH reference reader
eval/answer_key_new_ach.py - Reader comparator
harness/compare.py - Evaluation runner
eval/run_eval.py
Returns analysis
- Return matcher
eval/match_returns.py
Other components
- Engineer
- Moov ACH library
- Moov X9.37 library
Connections 17
- Engineer → ACH generator: generates files
README.md - ACH generator → ACH samples: writes samples
harness/gen_ach.py - Engineer → File checker: checks file
README.md - Engineer → Evaluation runner: runs evaluation
README.md - Evaluation runner → File checker: runs checks
eval/run_eval.py - Evaluation runner → Reader comparator: compares readers
eval/run_eval.py - Evaluation runner → Return matcher: matches returns
eval/run_eval.py - Reader comparator → Legacy ACH reader: loads reader
harness/compare.py - Reader comparator → ACH reference reader: loads reader
harness/compare.py - Return matcher → ACH samples: reads payments
- Return matcher → ACH samples: reads returns
- Write hook → Outbound files: checks writes
README.md - Write hook → File checker: invokes checker
scripts/validate_payment_file.py - File checker → Moov ACH library: parses ACH
checker/main.go - File checker → Moov X9.37 library: parses X9.37
checker/main.go - File checker → ACH samples: validates input
- File checker → X9.37 samples: validates input