Unimplemented TAN method version 7 encountered.
Opened this issue · 3 comments
danielr1996 commented
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: '...',
});
danielr1996 commented
See #15 for a WIP PR
b-g commented
philippdormann commented
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" ?