Skip to content
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

no transactions after tan challange with get_transactions #137

Open
Estartu opened this issue Jan 14, 2022 · 1 comment
Open

no transactions after tan challange with get_transactions #137

Estartu opened this issue Jan 14, 2022 · 1 comment

Comments

@Estartu
Copy link

Estartu commented Jan 14, 2022

When I tray to get the transactions from a period longer than 90 days, a TAN is needed.

When I send the TAN with send_tan the response is always an empty list.

The log after the TAN is send is in the attachment
tan_send.log

Without the TAN challange everything works fine.

The relevat code looks the folloring

    def get_account_transactions(self, start: datetime.date = None, end: datetime.date = None):
        transactions = self.client.get_transactions(self.account, start_date=start, end_date=end)
        if isinstance(transactions, NeedTANResponse):
            transactions = self.tan_challenge(transactions)
        for transaction in transactions:
            yield transaction.data

    def tan_challenge(self, res):
        print("Eine TAN wird benötigt!")
        print(res.challenge)

        tan = input('TAN:')
        return self.client.send_tan(res, tan)

@krystofbe
Copy link

I can confirm that your code works with GLS Gemeinschaftsbank ( https://hbci-pintan.gad.de/cgi-bin/hbciservlet ) and that after entering the PIN all transactions are returned.

Probably your bank does this differently

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants