-
Notifications
You must be signed in to change notification settings - Fork 81
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
DKB - 'Anzahl Signaturen für diesen Auftrag unzureichend laut UPD oder BPD.' #100
Comments
@agross I deleted your comment because it is not about DKB and in fact does not sound very similar since a different set of functions works. Feel free to open up a new issue. See also: https://python-fints.readthedocs.io/en/latest/trouble.html |
@MyUserForGitHub Is the attached log file from your test script or from ours from the documentation? I'm a little confused since it does not seem to send HKTAN with the commands at all, either the detection of TAN-required commands is broken or you somehow do not really run 3.0.0. |
@raphaelm Thank you for the feedback. Thanks in advance for your time. |
I experienced the same behavior while trying to request the balance from a DKB account. Also used the test script from the documentation and have version 3.0.0 running. |
I have the same problem using DKB and the official test script. get_sepa_accounts works, get_balance and get_transactions not. simple_sepa_transfer works also. |
The problem seems to be that although DKB returns information that TAN is not required to get balance or transactions, the fact is that TAN is required. This is what DKB returns and what seems incorrect: fints.formals.TransactionTanRequired(
transaction = 'HKKAZ',
tan_required = False,
), I managed to work around the issue using the following hack: diff --git a/fints/client.py b/fints/client.py
index 0e8a9c3..bc8dca8 100644
--- a/fints/client.py
+++ b/fints/client.py
@@ -1472,6 +1472,11 @@ class FinTS3PinTanClient(FinTS3Client):
):
return False
else:
+ if (
+ seg.header.type in FinTSOperations.GET_BALANCE.value
+ or seg.header.type in FinTSOperations.GET_TRANSACTIONS.value
+ ):
+ return True
hipins = self.bpd.find_segment_first(HIPINS1)
if not hipins:
return False |
Thanks jakubvalenta!
because "get balance" works without this patch and breaks with it. |
Yeah, that's the big problem: There seems to be no way to detect this and applying the hack breaks other banks. |
Couldn't there be some list with common hacks / quirks which the user can enable (like Either:
I don't think there's much hope that the banks will fix their software, and because multiple banks probably share the same underlying server software, it's likely that there's a small set of necessary hacks to support all banks. |
Using python-fints 3.0.0 (thank you for the update!), DKB does not seem to work.
I've tested with my script and with the test script:
In both cases it returns 'Anzahl Signaturen für diesen Auftrag unzureichend laut UPD oder BPD.'
It stopped working 2-3 weeks ago.
Please find attached the script and a full log of the dialog.
What can I do? Is there something I could test?
Thanks in advance.
fintest.log
fintest.py.txt
The text was updated successfully, but these errors were encountered: