Prior99/fints

Unimplemented TAN method version 7 encountered.

Opened this issue · 3 comments

With the latest version I encountered the error Unimplemented TAN method version 7 encountered.

I could fix this by manually adding version 7 in hitans.ts

 if (![1, 2, 3, 4, 5, 6,7].includes(this.version)) {
      throw new Error(`Unimplemented TAN method version ${this.version} encountered.`);
}

and in tan-method.ts (just copied the code for version 6)

tanMethodArgumentMap.set(7, [
    "securityFunction",
    "tanProcess",
    "techId",
    "zkaId",
    "zkaVersion",
    "name",
    "maxLengthInput",
    "allowedFormat",
    "textReturnvalue",
    "maxLengthReturnvalue",
    "multiple",
    "tanTimeDialogAssociation",
    "cancellable",
    "smsChargeAccountRequired",
    "principalAccountRequired",
    "challengeClassRequired",
    "challengeStructured",
    "initializationMode",
    "descriptionRequired",
    "hhdUcRequired",
    "supportedMediaNumber",
]);

This works at least for client.accounts() where no tan is required, I haven't tested it yet with use cases where an actuall tan is required.

My client configuration was for Sparkasse Nürnberg, don't know if this works for other banks as well:

const client = new PinTanClient({
    url: "https://banking-by1.s-fints-pt-by.de/fints30",
    name: "...",
    pin: "...",
    blz: "76050101",
    debug: true,
    productId: '...',
});

See #15 for a WIP PR

b-g commented

Same problem here! Many thanks for the pointers!

Any chance to get PR #15 merged in the near future? Pleeeeeease @Prior99 :)

hey, any updates on #15 ?

would love to use this library but I'm also running into Unimplemented TAN method version 7 encountered.
This seems to be the new Sparkasse "TAN without numbers"/ "TAN by confirmation only" ?