raphaelm / python-sepaxml

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

Payments from multi-currency bank accounts #41

Open pixelijo opened 2 years ago

pixelijo commented 2 years ago

Hello! Some bank offers multi currency accounts, when under the same account number you have separate accounts for different currencies. Such banks expect to receive <Ccy> in <DbtrAcct>:

<DbtrAcct>
 <Id><IBAN>CZ7855000000005001264780</IBAN></Id>
  <Ccy>EUR</Ccy>
</DbtrAcct>

It seems that the library does not support it now. Do you consider having it?

If I submit a PR, how would you like it to be implemented? multi_currency=True in config or something else?

raphaelm commented 2 years ago

Do you know if it is safe to always supply the currency even with non.multicurrency accounts?

pixelijo commented 2 years ago

Well, it is even defined by the schemas in your repo