Skip to content

Commit

Permalink
Workaround for ING
Browse files Browse the repository at this point in the history
  • Loading branch information
tthurnreiter committed Feb 20, 2021
1 parent 9edb467 commit d007d40
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions fints_importer.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ def is_cash_withdrawl(transaction):
return False

def transform_fints_transaction(transaction, parse_paypal=False):
print(transaction)
payee = transaction['applicant_name'] or ''
memo = transaction['purpose'] or ''

Expand All @@ -38,16 +39,16 @@ def get_transactions(bank_config):
product_id='33D93BB1B017D422A87837C01'
)

minimal_interactive_cli_bootstrap(f)

with f:
# Since PSD2, a TAN might be needed for dialog initialization. Let's check if there is one required
if f.init_tan_response:
print("A TAN is required", f.init_tan_response.challenge)
tan = input('Please enter TAN:')
f.send_tan(f.init_tan_response, tan)
# Fetch accounts
accounts = f.get_sepa_accounts()
# minimal_interactive_cli_bootstrap(f)
#
# with f:
# # Since PSD2, a TAN might be needed for dialog initialization. Let's check if there is one required
# if f.init_tan_response:
# print("A TAN is required", f.init_tan_response.challenge)
# tan = input('Please enter TAN:')
# f.send_tan(f.init_tan_response, tan)
# # Fetch accounts
accounts = f.get_sepa_accounts()

# get transactions
account = next(filter(lambda a: a.iban == bank_config.iban, accounts), None)
Expand Down

0 comments on commit d007d40

Please sign in to comment.