UNKNOWN
Project description
python-ach
----------
ACH file generator module for python. So far, this has been tested with "PPD" and "CCD" batches without addenda records. Support for addenda is on the agenda.
Example
-------
Below is an example of how to use the module:
```python
from ach.builder import AchFile
settings = {
'immediate_dest' : '123456789', # Your bank's routing number
'immediate_org' : '123456789', # Bank assigned routing number
'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',
},
{
'type' : '22',
'routing_number' : '12345678',
'account_number' : '234234234',
'amount' : '150.00',
'name' : 'Billy Holiday',
},
{
'type' : '22',
'routing_number' : '12323231',
'account_number' : '123123123',
'amount' : '12.13',
'name' : 'Rachel Welch',
},
]
ach_file.add_batch('PPD',entries,credits=True)
print ach_file.render_to_string()
```
This returns the following NACHA file:
```
1011234567891234567891212090414A094101YOUR BANK YOUR COMPANY
5220YOUR COMPANY 1234567890PPDPAYROLL 121209 1123456780000001
62212345678011232132 0000001000 ALICE WANDERDUST 0123456780000001
622123456780234234234 0000015000 BILLY HOLIDAY 0123456780000002
622123232315123123123 0000001213 RACHEL WELCH 0123456780000003
822000000300370145870000000000000000000172131234567890 123456780000001
9000001000001000000030037014587000000000000000001721300
9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
```
----------
ACH file generator module for python. So far, this has been tested with "PPD" and "CCD" batches without addenda records. Support for addenda is on the agenda.
Example
-------
Below is an example of how to use the module:
```python
from ach.builder import AchFile
settings = {
'immediate_dest' : '123456789', # Your bank's routing number
'immediate_org' : '123456789', # Bank assigned routing number
'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',
},
{
'type' : '22',
'routing_number' : '12345678',
'account_number' : '234234234',
'amount' : '150.00',
'name' : 'Billy Holiday',
},
{
'type' : '22',
'routing_number' : '12323231',
'account_number' : '123123123',
'amount' : '12.13',
'name' : 'Rachel Welch',
},
]
ach_file.add_batch('PPD',entries,credits=True)
print ach_file.render_to_string()
```
This returns the following NACHA file:
```
1011234567891234567891212090414A094101YOUR BANK YOUR COMPANY
5220YOUR COMPANY 1234567890PPDPAYROLL 121209 1123456780000001
62212345678011232132 0000001000 ALICE WANDERDUST 0123456780000001
622123456780234234234 0000015000 BILLY HOLIDAY 0123456780000002
622123232315123123123 0000001213 RACHEL WELCH 0123456780000003
822000000300370145870000000000000000000172131234567890 123456780000001
9000001000001000000030037014587000000000000000001721300
9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
```
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ach-0.1.1.tar.gz
(7.3 kB
view details)
File details
Details for the file ach-0.1.1.tar.gz
.
File metadata
- Download URL: ach-0.1.1.tar.gz
- Upload date:
- Size: 7.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3991f33185dcdcf1e6bafcaead444753ff76a4ce684394492eeb005245359824 |
|
MD5 | 4701d316dc2e4491934c217132de2b73 |
|
BLAKE2b-256 | 055327e210b9ddbebeb8c77255de0fa92ccc01d896b69f5a57d75cfb45231a64 |