Skip to content

Unable to get get_transactions() to work with GLS and SecureGo #208

@x1125

Description

@x1125

Hey there, I'm trying to switch from ING to GLS and I'm having problems with the TAN procedure.
I think I read all of the documentation and most of the Github issues, but couldn't resolve my issue.

When trying to get the transactions for my GLS account, I get a response like this:

<o.__class__.__name__(command_seg=fints.segments.statement.HKCAZ1(header=fints.formals.SegmentHeader('HKCAZ', 3, 1), account=fints.formals.KTI1(iban='DE31...', bic='GENODEM1GLS'), supported_camt_messages=fints.formals.SupportedMessageTypes(expected_type=['urn:iso:std:iso:20022:tech:xsd:camt.052.001.08']), all_accounts=False), tan_request=fints.segments.auth.HITAN7(header=fints.formals.SegmentHeader('HITAN', 5, 7, 4), tan_process='4', task_reference='...', challenge='Bitte bestätigen Sie den Vorgang in Ihrer SecureGo plus App'))>

When using time.sleep(), accepting the request in the app and doing the same operation again, I'm getting the same result. Sending a tan via python-fints doesn't make any sense.

My code is pretty straight forward:

client = FinTS3PinTanClient(
    identifier,
    user_id,
    pin,
    server,
    product_id=product_id
)

with client:
    assert client.get_current_tan_mechanism() == "946"
    
    account = client.get_sepa_accounts()[0]
    assert str(account.iban).startswith("DE31")
    
    response = client.get_transactions(account)
    if isinstance(response, fints.client.NeedTANResponse):
        print("NeedTANResponse")
        time.sleep(30)

    print(client.get_transactions(account))

The object for the tan mechanism looks like this:

{'946': fints.formals.TwoStepParameters7(security_function='946', tan_process='2', tech_id='DECOUPLED', zka_id='Decoupled', zka_version=None, name='SecureGo plus (Direktfreigabe)', max_length_input=None, allowed_format=None, text_return_value='TAN', max_length_return_value=2048, multiple_tans_allowed=True, tan_time_dialog_association=fints.formals.TANTimeDialogAssociation.NOT_ALLOWED, cancel_allowed=False, sms_charge_account_required=fints.formals.SMSChargeAccountRequired.MUST_NOT, principal_account_required=fints.formals.PrincipalAccountRequired.MUST, challenge_class_required=False, challenge_structured=True, initialization_mode=fints.formals.InitializationMode.CLEARTEXT_PIN_NO_TAN, description_required=fints.formals.DescriptionRequired.MUST_NOT, response_hhd_uc_required=False, supported_media_number=1, decoupled_max_poll_number=150, wait_before_first_poll=2, wait_before_next_poll=2, manual_confirmation_allowed=True, automated_polling_allowed=True)}

Can you help me out there?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions