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().
Problem
Account statements and balance requests fail with error 9010 for Salzlandsparkasse (and likely other banks):
Translation: "Invalid TAN media type. Only 0 is allowed."
Root Cause
TanMediaInteractionsends an HKTAB segment during dialog initialization when the selected TAN method hastanMediaRequirement > 0(e.g. pushTAN 2.0 / method 923 hastanMediaRequirement: 2).The HKTAB segment is constructed in
src/interactions/tanMediaInteraction.tswith:Salzlandsparkasse rejects
mediaType: 1and only acceptsmediaType: 0(TanMediaType.All).Expected Behaviour
HKTAB should use
TanMediaType.All(0) as the default. ThemediaTypefield controls which media entries are returned —Allreturns every configured medium,Activeonly currently active ones. UsingAllis the safer default: it does not assume the bank distinguishes active vs. inactive media, and several banks rejectActiveoutright.Suggested Fix
in
src/interactions/tanMediaInteraction.ts, insidecreateSegments().