Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add multiple PaymentInformation into the SEPA SDD #60

Open
mans17 opened this issue Jan 20, 2024 · 2 comments
Open

Add multiple PaymentInformation into the SEPA SDD #60

mans17 opened this issue Jan 20, 2024 · 2 comments

Comments

@mans17
Copy link

mans17 commented Jan 20, 2024

In the "CFONB" (french bank norm concil) it states that the "PaymentInformation" block may be repeated.

Reading the code, it would be quite a remake...

1/ On my side, build several SepaSDD, and "merge" XMLs.
2/ On Project Side, add a layer to code, such as :

import datetime, uuid

config1 = {
    "name": "Test von Testenstein 1",
    "IBAN": "NL50BANK000000001",
    ...
}
config2 = {
    "name": "Test von Testenstein 2",
    "IBAN": "NL50BANK000000002",
    ...
}

## This creates a sepa and adds first creditor as config1.
## This is supposed to be exactly as "before", not breaking working code everywhere :-)
sepa = SepaDD(config1, schema="pain.008.001.02", clean=True)
sepa.add_payment(payment_a)
sepa.add_payment(payment_b)
sepa.add_payment(payment_c)

## we define a new creditor from now on...
sepa.new_creditor(config2)
sepa.add_payment(payment_d)

print(sepa.export(validate=True))
@raphaelm
Copy link
Owner

even if the spec technically allows it, do regular banks in fact accept such files? German banks tend to reject files for much simpler reasons

@mans17
Copy link
Author

mans17 commented Mar 22, 2024

My bank refuses to implement "multiple xml posting at once" because it accepts such files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants