]> git.ipfire.org Git - thirdparty/python-fints.git/commit
Improve code example in docs/tans.rst (#184)
authorlemoer <git@irrelefant.net>
Mon, 10 Feb 2025 11:38:32 +0000 (12:38 +0100)
committerGitHub <noreply@github.com>
Mon, 10 Feb 2025 11:38:32 +0000 (12:38 +0100)
commit87106bb775a8b8573034d25889b89a2c22f3259c
tree460b187ad4e7e3018e5d6804ae27bcad26153598
parent28251f07d857d6ef1849e1d27b1da847db1a8138
Improve code example in docs/tans.rst (#184)

* Add product_id to example in docs/tans.rst

* Fix initial tan request in example in docs/tans.rst

Before this commit, the example suggested that we should only ask for
a TAN after calling client.get_transactions(). This did not work (at least
for my bank Sparkasse Hannover). Now with this commit, the example is
proposing to ask for a TAN already in the beginning, as also suggested
in docs/trouble.rst.

Another side effect of this commit is that ask_for_tan() now also checks
for response.decoupled and presents a more reasonable string for input()
in the case of PushTAN.
docs/tans.rst