Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,10 @@ You could ask the user to confirm that the approval was given and then continue

see also the `decoupled` property on the `TanMethod` object for related parameters given by the bank.

**chipTAN optisch / flicker codes**

For chipTAN methods the bank sends the challenge data for the TAN generator in the HITAN segment. The response exposes it unchanged as `tanChallengeHhdUc` (a string with the HHD 1.3/1.4 start code and data elements), so that a client can render the optical flicker animation; `tanPhoto` only applies to photoTAN banks that put an image container into the same field.

### Starting a session from saved banking information

As mentioned earlier there is a second way to initialize the `FinTSClient` with a `FinTSConfig` when you already performed a synchronization in a previous session and this is by providing the `bankingInformation` object received from previous uses. This `bankingInformation` object, which contains the general bank (BPD) and accounts information (UPD), should be persisted after a session and reloaded in the next session.
Expand Down
8 changes: 8 additions & 0 deletions src/interactions/customerInteraction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,13 @@ export interface ClientResponse {
tanReference?: string;
tanChallenge?: string;
tanPhoto?: PhotoTan;
/**
* The raw HHD UC challenge from HITAN, untouched. photoTAN banks put an
* image container here (see tanPhoto), chipTAN banks the flicker code data
* (HHD 1.3/1.4 start code and data elements) that a client renders as the
* optical flicker animation. Only this raw form is usable for chipTAN.
*/
tanChallengeHhdUc?: string;
tanMediaName?: string;
}

Expand Down Expand Up @@ -117,6 +124,7 @@ export abstract class CustomerInteraction {
bankAnswers.find((answer) => answer.code === 3957)?.text ??
'',
tanPhoto: hitan.challengeHhdUc ? this.parseHHDUC(hitan.challengeHhdUc) : undefined,
tanChallengeHhdUc: hitan.challengeHhdUc,
tanMediaName: hitan.tanMedia,
};
} else {
Expand Down
Loading