Skip to content

Unimplemented TAN method version 7 encountered. #13

Description

@danielr1996

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: '...',
});

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