raphaelm / python-sepaxml

SEPA Direct Debit XML generation in python
MIT License
110 stars 41 forks source link

Validation error for DD with empty BIC field #16

Closed Siesh1oo closed 5 years ago

Siesh1oo commented 5 years ago

If the BIC is empty (optional for national transfers in countries like Germany), the validation fails with error:

    print(sepa.export(validate=True))
  File "/usr/local/lib/python3.7/dist-packages/sepaxml/shared.py", line 92, in export
    "The output SEPA file contains validation errors. This is likely due to an illegal value in one of "
sepaxml.validation.ValidationError: The output SEPA file contains validation errors. This is likely due to an illegal value in one of your input fields.
raphaelm commented 5 years ago

The BIC is not optional in the XML file, as far as I know.