-
Notifications
You must be signed in to change notification settings - Fork 50
/
example.py
44 lines (39 loc) · 1.15 KB
/
example.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
from ach.builder import AchFile
settings = {
'immediate_dest' : '123456780',
'immediate_org' : '123456780',
'immediate_dest_name' : 'YOUR BANK',
'immediate_org_name' : 'YOUR COMPANY',
'company_id' : '1234567890', #tax number
}
ach_file = AchFile('A', settings) #file Id mod
entries = [
{
'type' : '22', # type of
'routing_number' : '12345678',
'account_number' : '11232132',
'amount' : '10.00',
'name' : 'Alice Wanderdust',
'addenda' : [
{
'payment_related_info': 'Here is some additional information',
},
],
},
{
'type' : '27',
'routing_number' : '12345678',
'account_number' : '234234234',
'amount' : '150.00',
'name' : 'Billy Holiday',
},
{
'type' : '22',
'routing_number' : '123232318',
'account_number' : '123123123',
'amount' : '12.13',
'name' : 'Rachel Welch',
},
]
ach_file.add_batch('PPD', entries, credits=True, debits=True)
print ach_file.render_to_string()