python-fints
python-fints copied to clipboard
Allow to pass system ID
from fints.client import FinTS3PinTanClient
client = FinTS3PinTanClient(*client_args)
with client:
client.get_tan_mechanisms
with client:
if client.init_tan_response:
challenge = client.init_tan_response
print(challenge)
tan = input("TAN: ")
client.send_tan(challenge, tan)
system_id = client.system_id
client = FinTS3PinTanClient(*client_args, system_id=system_id)
bool(client.get_sepa_accounts()) # raises FinTSNoResponseError, see next lines
# Dialog response: 9050 - Die Nachricht enthält Fehler.
# Dialog response: 9075 - Banking-Programm nicht PSD2-fähig, bitte aktualisieren.
# FinTSNoResponseError: The bank's response did not contain a response to your request, please inspect debug log.
bool(client.get_sepa_accounts()) # True, returns accounts as requested
Bank is Ostsächsische Sparkasse Dresden. Am I doing something wrong?
I don't know. My Sparkasse has not rolled out the behavior yet, so I can't test any of this