Skip to content

HKTAB: mediaType should default to All (0), not Active (1) #22

@yannis-schmiedel

Description

@yannis-schmiedel

Problem

Account statements and balance requests fail with error 9010 for Salzlandsparkasse (and likely other banks):

code: 9010
text: Unzulässige TAN-Medien-Art. Zulässig ist ausschließlich 0. (MDC15920000020)

Translation: "Invalid TAN media type. Only 0 is allowed."

Root Cause

TanMediaInteraction sends an HKTAB segment during dialog initialization when the selected TAN method has tanMediaRequirement > 0 (e.g. pushTAN 2.0 / method 923 has tanMediaRequirement: 2).

The HKTAB segment is constructed in src/interactions/tanMediaInteraction.ts with:

mediaType: TanMediaType.Active,  // value 1

Salzlandsparkasse rejects mediaType: 1 and only accepts mediaType: 0 (TanMediaType.All).

Expected Behaviour

HKTAB should use TanMediaType.All (0) as the default. The mediaType field controls which media entries are returned — All returns every configured medium, Active only currently active ones. Using All is the safer default: it does not assume the bank distinguishes active vs. inactive media, and several banks reject Active outright.

Suggested Fix

- mediaType: TanMediaType.Active,
+ mediaType: TanMediaType.All,

in src/interactions/tanMediaInteraction.ts, inside createSegments().

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