Solution
- Navigate to Payments > Setup > Payment File Templates
- Desired Payment File Template: Click Edit
- Entity Reference Fields: Add your field using the below code in preferred location. <refField id=’FieldId’ label=’field label’ mandatory=’true or false’/>
change the field ID and label according to your field settings. If it’s a mandatory field set value as true otherwise false. - Click Save