python-fints icon indicating copy to clipboard operation
python-fints copied to clipboard

Allow to pass system ID

Open raphaelm opened this issue 1 year ago • 2 comments

raphaelm avatar Oct 07 '24 09:10 raphaelm

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?

FestplattenSchnitzel avatar Oct 07 '24 19:10 FestplattenSchnitzel

I don't know. My Sparkasse has not rolled out the behavior yet, so I can't test any of this

raphaelm avatar Oct 07 '24 19:10 raphaelm