Skip to main content

fints 0.4.0 copy "fints: ^0.4.0" to clipboard
fints: ^0.4.0 copied to clipboard

FinTS 3.0 and 4.1 client for German banks. Retrieves accounts, balances, transactions and depot holdings with PIN/TAN, decoupled approval and PSD2 strong customer authentication.

0.4.0 #

An app may notice these changes: FinTsClient has the new members getHoldings and resume, which every implementation of the interface must add, and TanAnswer the new subtype SuspendedTan, which a switch over it must cover; the package depends on crypto, for the digest that binds a suspended call to the saved state; client.state holds when the bank parameter data came, the business transactions the bank refused without strong customer authentication and a suspended call's digest and expiry in entries of their own, which earlier versions ignore; getBalance also asks a bank that offers the balance only in version 5 of HBCI 2.2, as ING does, and getTransactions one that offers MT940 transactions only in that version, where both failed with FinTsUnsupportedException before anything went out; getTransactions and getBalance also read a credit card account that the bank serves by its card business transactions, DKKKU and DKKKS at Sparkassen, BW-Bank and comdirect, HKKKU and HKKKS at Deutsche Bank and Postbank, where they failed with FinTsUnsupportedException, or with the bank's 9010 where the user parameter data list the permitted transactions in part: its bookings are booked Transactions with originalAmount and cardNumber, a query of more days than the bank answers card bookings for at once fails with FinTsUnsupportedException, as do one with a to before the first day the bank keeps and no from and one with any from or to where the bank takes no period, and getBalance of a card account the bank serves by bookings alone sends the bookings query, which may ask for its approval, as does that of one whose card balance query the bank does not offer, where the user parameter data list all permitted transactions, while other calls for which the bank does not offer the card queries an account lists take the regular query, as before; getTanMethods and tanMethodSelector also offer a TAN method that asks for the HHD_UC answer, as Consorsbank's did; TanChallenge.isDecoupled follows the bank's answer alone (3955), so a TAN method the bank names Decoupled may bring a challenge that asks for a TAN, and its numericTan is false where its parameters state no format; the first login from a state an earlier version saved asks for the bank parameter data anew, as does any login a week after they came; the login that looks up the TAN media names no medium instead of noref; a FinTS 3.0 login the bank refuses for outdated parameter data goes out once more, as does that lookup, with noref, where the bank refuses it with 9955 and no errors but 9050 or 9800 besides, so a call sends up to five logins the bank refuses, where it sent three; an answer telling that the bank has locked the access for now (3931 or 3938) fails the call with FinTsPinException, also beside a success, and keeps the PIN unsent until clearLoginRefusal, and onWarning no longer receives these warnings: the message of the exception, as of any FinTsBankException that carries them, holds their text, which tells the user how to lift the lock; a query whose answer has a 3040 naming no position to continue at fails with FinTsIncompleteResultException, a FinTsProtocolException as before, which holds what came; a query the bank refuses for want of strong customer authentication, though its parameter data say it needs none, goes out once more in the same call, in a new dialog and with HKTAN, as do the later queries of its business transaction, so the user may be asked for another login approval and a TAN, also for the SEPA account list, which getAccounts asks for; getTransactions without from starts on the first day the bank keeps, as its parameter data state, where it named no start date, so a bank that asks for a TAN beyond 90 days ago may ask for one there; a camt query names one camt.052 format, the highest the bank offers, where it named all; getTransactions and Mt940.parse read MT940 statements that a bank cuts across pages inside a line, or that hold a field after the statement end on its line (-:61:), blanks in amounts or a balance without currency, where they failed, and a purpose line starting with -:61: counts as a field, as one starting with :61: does; getBalance reads a booked balance without date as of the bank's today, a single balance that names no account as that of the account asked for, an amount E-9, as zero, and an account without sub-account in the older layout, where it failed with FinTsProtocolException; a FinTS 3.0 answer naming message number 9999 or dialog ID unbekannt with nothing but return codes fails the call with a FinTsBankException holding the bank's text, where it failed with FinTsProtocolException, and to a login it is a refused login, which no other login of the call follows unless the answer names the message sent; a returned payment in camt names the other side of the payment as counterparty, where it named the account holder; and a chipTAN-QR challenge brings its image in TanChallenge.image, and its plainMessage is the instruction text alone. New are getHoldings with HoldingsStatement, Holding, Quantity, QuantityKind, Price and PriceKind; resume with TanAnswer.suspended, TanChallenge.suspendable and FinTsSuspendedException, for a FinTS 3.0 call that stops at a TAN challenge and goes on in another client, also in another process; FinTsIncompleteResultException; FinTsClientOptions.tanRequiredFor; Transaction.originalAmount and Transaction.cardNumber; and the optional message of FinTsDialogAbortedException.

Fixed #

  • A TAN method whose parameters ask for the HHD_UC answer (HITANS "Antwort HHD_UC erforderlich", in FinTS 4.1 HHDucReplyRequired) is offered and signs the login as any other: Consorsbank sets it for SecurePlus (900), from 2019 to April 2026 its one method, and takes the TAN without that answer. Such a method was left out, so where the bank offered no other, every call failed with FinTsTanSetupException before the login. Methods of process variant 1, and those that need an SMS charge account, are still left out.
  • A challenge is an app approval (TanChallenge.isDecoupled) where the bank's answer asks for one with return code 3955, and asks for a TAN where it has 0030 alone, whatever the TAN method: Consorsbank's app (901), which the bank names Decoupled, takes a typed TAN at login and an approval in the app for orders. Such a login showed an app approval and asked the bank for its status, which a bank waiting for the TAN refuses, so the call failed. The same holds in FinTS 4.1. HITANS 7 states no TAN length or format for a Decoupled method, so its TAN goes out as typed: TanMethod.numericTan is false for one, also in FinTS 4.1 without FormatTAN.
  • Bank parameter data that came more than a week ago, or in a state that does not tell when, as one of 0.3.0 or before, are asked for anew: a login reports version 0 for them, in FinTS 4.1 leaves out BpdVersion. Banks change them without raising the version, as Consorsbank its TAN methods on 2026-04-25. Saved ones were reported by their version for good, so the bank sent no new ones, and every login went out as they said. The time is the entry bpdFetchedAt of the state's protocol section, which earlier versions ignore.
  • A FinTS 3.0 login the bank refuses for nothing but its HKTAN (9010 or 9050 for that segment, no other error than 9050 or 9800 for the whole message) goes out once more in the same call with renewed bank parameter data: those the refusal brought, else an anonymous dialog's, and version 0 reported for any older ones; not where the refusal brings the same data again, nor where the login reported version 0 already and nothing renews them, since it would go out as refused; another reason the refusal names, such as a 3920 that leaves out the TAN method (below), is still taken care of. It counted as a refused login, so the client sent the PIN no more until clearLoginRefusal, and the login after that went out with the same outdated HKTAN, such as version 6 at Consorsbank.
  • A login refused with a 3920 that leaves out its TAN method, or a one-step login refused with 9075, goes out once more with another method, as before, but chosen among renewed bank parameter data, as above, where the methods the bank last listed (3920) include one the data lack. It was chosen among those the outdated data offered, or only the one-step method was offered where they offered none the 3920 lists.
  • The login that looks up the TAN media, before the medium is known, names no medium where the TAN method needs one, as other FinTS libraries do, instead of the placeholder noref the specification gives (PIN/TAN B.4.3.1.3), also in FinTS 4.1 (NameTANMedium). Taunussparkasse refused the placeholder with 9050, 9800 and 9955 "Gerätebezeichnung unbekannt": the client then sent the PIN no more until clearLoginRefusal, after which the same lookup went out again. Where a bank refuses the login without the medium so, with 9955 and no errors but 9050 or 9800 besides, which are not about the PIN, and asks for no app approval (3955), it goes out once more in the same call with noref, as do the client's later lookups.
  • A warning that the bank has locked the access for now, 3931 "Vorläufige Sperre liegt vor" or 3938 "Zugang vorläufig gesperrt", refuses the login as a blocked PIN does, wherever the bank reports it, also in FinTS 4.1: the call fails with FinTsPinException, whose message holds the bank's text, and the client sends the PIN no more until clearLoginRefusal, also once restored from the saved state. Kreissparkasse Miesbach-Tegernsee sent 3938 beside a successful login, and Postbank 3931 beside a TAN request: the login counted as successful, the user was asked for the TAN, and later calls logged in with the PIN while the access stayed locked.
  • A query whose last page has return code 3040 (more data) naming no position to continue at fails with FinTsIncompleteResultException, a FinTsProtocolException as before, also in FinTS 4.1, so a short list still never passes for all there is, but the exception holds what came (partialResult, of the call's result type), such as the transactions of the pages received, and the 3040s (feedback), whose text tells the user why the rest is missing; onWarning does not get them. Sparkassen answer so with too many pending bookings, with two 3040s, "Es liegen zu viele vorgemerkte Umsätze vor." and "Eine Bereitstellung ist technisch nicht möglich.", and Sparda-Bank sends one as a notice: the pages received were lost with the exception. A repeated position and endless pages still fail the call.
  • A query sent without HKTAN, as the bank parameter data (HIPINS) allow, that the bank refuses for want of strong customer authentication goes out once more in the same call, in a new dialog and with HKTAN, as do the later queries of its business transaction, also of a client restored from the saved state; in FinTS 4.1 likewise inside a signature submission (DistSigsSubmit), where OTPTransactions do not name it. Consorsbank refuses HKKAZ so with 9075, as python-fints found in 2026, netbank and the old server of DKB with 9370, and Deutsche Bank transactions older than 90 days with 9210 "Zwei-Schritt-TAN inkonsistent": the call failed, and so did every later one, after 9075 with FinTsDialogAbortedException and each after a login of its own. It goes out once more only with a two-step TAN method, and only where the answer names no success for it and no wrong PIN; refused again, the call fails. The business transactions are the entry tanDemandedFor of the state's protocol section, which earlier versions ignore.
  • A query of transactions without from starts on the first day the bank keeps them, as many days before its today as the bank parameter data state for the version sent ("Speicherungszeitraum" of HIKAZS or HICAZS, in FinTS 4.1 AcctMvmtData_Cutoff), as in hbci4java: 360 days for MT940 and 450 for camt at Sparkassen, 450 for camt at DKB, 370 at Deutsche Bank. It named no start date, which a Sparkasse refused with 9010 "Abfrage uebersteigt gueltigen Zeitraum". Where the parameter data state no period, or 0 days, or to lies before that day, it still names none. A from the app passes goes out as before, also one before that day: the bank decides on it.
  • A camt query (HKCAZ, in FinTS 4.1 AcctMvmtsSpecifiedPeriodCamt) names one camt.052 format, the highest version the bank offers, such as camt.052.001.08 where it offers .02 and .08, as in hbci4java: some banks, the Sparkassen among them, fail at a request naming several. It named every camt.052 format the bank offered, as Sparkasse Muldental and DKB offer two.
  • The MT940 pages of a query are joined as the bank sent them, as in python-fints, also in FinTS 4.1: Sparkassen cut a page anywhere, also inside a line, a field tag or a character, where the client put a line break, so the call failed with FinTsProtocolException or lost the rest of a purpose. A line break still goes between two pages where the first ends no line and the second starts with a field. A byte order mark at the start of a page goes as before, and the pages are read as UTF-8 together where they are UTF-8 together, else each on its own, as before.
  • MT940: a field after the statement end on its line counts as a field, as DKB writes -:20: and other banks -:61:, which hbci4java reads; blanks in amounts, as banks on the Bankverlag server write them, are left out; and a balance (:60F:, :62F:) that states no currency is in the statement's, of its other balance or else the account's (the currency of Mt940.parse). For such statements Mt940.parse threw FormatException and getTransactions failed with FinTsProtocolException, for -:61: as the transactions did not add up. A purpose line starting with -:61: is a field now, as one starting with :61: is, and the balance check catches it alike.
  • A booked balance without date (HISAL, in FinTS 4.1 Current_ValutaBal) is of the bank's today (Balance.bookedAsOf, with no bookedAsOfTime), as AqBanking reads it: DKB sent one so from 23 to 28 July 2026 (hbci4java), and getBalance failed with FinTsProtocolException. A date the client cannot read still fails the call.
  • A single balance whose account is empty is that of the account asked for, as phpFinTS reads it, also in FinTS 4.1: norisbank sent one, and getBalance failed with FinTsProtocolException. Of several balances, each must name its account.
  • A balance amount E-9, in HISAL, as Deutsche Bank states a zero balance, is zero, as libfintx reads it; getBalance failed with FinTsProtocolException. Amount.parseDecimal still rejects it.
  • The account of a balance (HISAL) is read as that of the user parameter data, also in the older layout without sub-account: number, country and bank code, which a bank may still send in HISAL 5 and 6, as of HBCI 2.2. The country code was taken for the sub-account, so the balance named another account, and getBalance failed with FinTsProtocolException.
  • A FinTS 3.0 answer whose header names message number 9999 or dialog ID unbekannt, and that carries nothing but return codes (HIRMG, HIRMS), an error among them, besides header, trailer, envelope and signature, is the bank's error answer, as ING sends them (hbci4java) and Sparkassen while out of service: the call fails with a FinTsBankException holding the bank's text, and the dialog is over. It failed with FinTsProtocolException ("The answer belongs to another message than the one sent"), so the user never read the bank's text; only the dialog abort message, with no return codes but those for the whole message, was read so. One that carries anything else, or no error, still fails so, as does one whose header names another message as the one it answers (Bezugsnachricht), now also the dialog abort message. Before the bank has assigned the dialog ID, either may name any, as a first answer may. To a login, such an answer is a refused login, as any with an error, but where it does not name the message sent, none of its reasons, such as a customer system ID the bank no longer takes (9391), is taken care of with another login in the same call: it may answer another message. A first answer naming its message number names the message sent, whatever dialog ID it names, and is read as before.
  • camt: a returned payment, whose transaction details state a return reason (RtrInf/Rsn/Cd), names the other side of the payment as counterparty, as a reversal (RvslInd) does and as hbci4java reads it, also in FinTS 4.1 and in Camt.parse: the payee of a direct debit the debtor's bank returned, the payer of a returned transfer; a reversed return, which books it the other way round once more, names that side too. The related parties describe the payment, so the counterparty was the account holder, with the account's own IBAN.
  • The chipTAN-QR image that Sparkassen and DKB send for method 913, a PNG in base64 in the challenge text between CHLGUC and CHLGTEXT, with the four bytes null as HHD_UC, is the challenge's image (image/png), and plainMessage the text after CHLGTEXT, as hbci4java reads it: the image was dropped, so the user read "Bitte QR-Code scannen." and saw nothing to scan, or, where the length before the image did not match it, the base64 text too. The length is not compared, as the PNG signature tells the image; a code there that is neither a flicker code nor a PNG image stays text, as before. An image in HHD_UC still comes first.

Added #

  • Credit card accounts in FinTS 3.0. For an account that lists DKKKU (version 2) or HKKKU (version 1) and neither HKCAZ nor HKKAZ, getTransactions with TransactionFormat.auto asks for its card bookings, HKKKU where the bank offers both; and getBalance for an account that lists no HKSAL asks for the card balance (DKKKS 3, HKKKS 1), or, for one that lists neither, takes the balance the bookings query brings, which may need the approval that query needs, as does one that lists a card balance query the bank does not offer, where the user parameter data list all permitted transactions and so rule HKSAL out. Other calls for which the bank does not offer the card queries an account lists take the regular query, as before. These business transactions of the Deutsche Kreditwirtschaft are not in the public specification: their layout follows AqBanking, hbci4java, python-fints, phpFinTS, lib-fints and fints4k and the answers real banks sent them. Without from the query starts as many days back as the bank keeps card bookings (DIKKUS, HIKKUS), 90 at Sparkassen, 314 to 428 at Deutsche Bank; a period of more days, or a to before that day without from, fails with FinTsUnsupportedException before the query goes out, since BW-Bank answered longer ones incompletely without telling. Where the bank's parameter data say it takes no period for card bookings, any from or to fails so. A booking has the booking date, as value date the bank's or else the day of purchase, the bank's text lines as purpose and its reference as bankReference; it is booked, whatever the bank marks as final or not, as AqBanking and hbci4java read it. An answer that names another card account, or none, fails with FinTsProtocolException, as does an amount whose sign contradicts or repeats its credit/debit mark. HKKKU and HKKKS name the account by IBAN and BIC with the national account, also where HISPAS rules that out, as Postbank takes it. Card accounts the bank serves by the regular queries, as DKB and the Volksbanken do, take those as before, as does any account that lists HKKAZ or HKCAZ beside a card query; so do all accounts in FinTS 4.1, whose schemas define no card bookings or balance.
  • Transaction.originalAmount, the amount in the currency a card was charged in where it differs from amount's, and Transaction.cardNumber, the card number the bank names for a booking, which may be the full card number.
  • getHoldings(account), the securities in a depot account by the bank's depot statement (HKWPD 5 and 6, MT535), as a HoldingsStatement: each Holding with ISIN and WKN where given, name, Quantity (pieces, or a face amount in its currency), Price (per piece in a currency, or in percent of the face amount) with its kind and day, market value and acquisition price, and the depot's total and day where the bank states them. Both versions name the depot by its national account, as the specification has it; where a bank offers both, as ING and Consorsbank do, version 6 goes out. The statement is read across pages and in the layouts banks have sent: a security named by its WKN alone (as MLP is reported to send), prices with time of day (Deutsche Bank), acquisition prices of ING and DKB with up to seven decimals, also in another currency than the depot's, bonds priced in percent, and no total (as DKB's, it seems, since November 2024). A detail of a holding the client cannot read, or whose meaning the statement leaves open, is left out; a statement whose structure, or a holding whose security or quantity, it cannot read fails the call with FinTsProtocolException, as does an answer without statement where the bank reports no empty depot: an empty depot is a statement that reports no holdings, or return code 3010 "Es liegen keine Einträge vor", not a 3010 of another text, which the bank also sends for what it does not offer now. In FinTS 4.1, the same by PortfList 1, validated against the official schemas.
  • TanAnswer.suspended (SuspendedTan), TanChallenge.suspendable, FinTsSuspendedException and FinTsClient.resume: a call stops at a challenge the app answers with TanAnswer.suspended, leaving its bank dialog open, which close() does not end, and resume continues it in the same dialog with the next message, from a client restored from the state saved after it, and returns what the call returns. The suspension holds no PIN or TAN, and no order: the resumed call builds its orders anew, and checks the suspension read back as untrusted input. It is used once, bound to that state by its SHA-256 digest, dropped by selectTanMethod, clearLoginRefusal, a refused login and any later login, and expires with the dialog, five minutes after the bank's last answer where the bank states no timeout, at most ten. Logins can be suspended, the synchronization's and the TAN media lookup's among them, and the orders of queries, the depot holdings' and the card queries' among them, on any page while the pages received so far and the answer asking for the approval total 4 MiB at most; not the TAN media list asked after its own login, nor a FinTS 4.1 challenge. A query resumed at any page keeps the pages received before and fetches the rest, built as of the time it was suspended, unlike python-fints (#125) and phpFinTS; an app approval resumed asks the bank once, then the callback, within the bank's maximum of status requests and ten minutes since the first prompt across all resumes. An answer resume cannot take, such as a TAN too long for the method, and a PIN the bank's lengths rule out fail before anything goes out and leave the suspension usable; the login guard's rules hold across it, so a refused login stays refused and each reason lifts a refusal once in the call as a whole.
  • FinTsIncompleteResultException, a FinTsProtocolException that holds the part of a call's result the bank sent before a 3040 naming no position to continue at, and that 3040 (see above).
  • HKSAL 5, which banks such as ING still offer alone within FinTS 3.0. It goes out with the national account, as version 6, and HISAL 5 is read in its own layout: it has no overdraft, and gives the booking date and time as two elements where version 6 has one timestamp. Where a bank also offers a later version, that one goes out.
  • HKKAZ 5, the same as version 6 but for its name. For TransactionFormat.auto, camt still goes first where the account lists it, as before.
  • FinTsClientOptions.tanRequiredFor: business transactions, such as {'HKKAZ'}, whose orders go out with HKTAN whatever HIPINS says, in FinTS 4.1 with strong customer authentication whatever OTPTransactions say, as python-fints' force_twostep_tan has them, for a bank known to refuse them without; the client's constructor throws an ArgumentError for a name that is none.
  • FinTsDialogAbortedException takes a message, as FinTsBankException does.

0.3.0 #

An app may notice these changes: FinTsTransport.post takes the new parameter abortTrigger, which every implementation must add to its post; a TAN the TAN method rules out fails the call with a FinTsTanException without return codes before it is sent; an account the app builds itself that the bank names nowhere fails with FinTsUnsupportedException where the user parameter data list all permitted transactions, and the allowedTransactions an app sets on an account count for nothing; a refused login is kept in client.state, so that a client restored from it does not send the PIN either until clearLoginRefusal lifts the refusal; FinTsClient has the new members loginRefusal and clearLoginRefusal; a refused login is a FinTsLoginRefusedException, also where the bank ends the dialog in answer to the login, which was a FinTsDialogAbortedException; a missing TAN method or medium is a FinTsTanSetupException, not a FinTsUnsupportedException; FinTsConfig throws an ArgumentError for a country code of other than three digits, a German bank code of other than eight digits, a URL with a user name or password, a URL that WHATWG URL refuses, such as one with a port above 65535, and a host with other characters than ASCII and the Latin letters the package converts to punycode, drops blanks around the login details and the product, and keeps its url as WHATWG URL writes it, such as https://bank.example/ for https://bank.example and with punycode for a host with umlauts, which also names the server in client.state; an ArgumentError carries no invalidValue; any error a transport throws, an Error or another FinTsException included, is a FinTsTransportException that keeps only its message, or only its type where it is of a type the package does not know, HttpTransport rejects a timeout or size limit that is not positive, sends to the URL as WHATWG URL writes it and fails before sending for a URL that WHATWG URL refuses or whose host the package cannot convert to punycode, and in a browser its own client is fetch rather than package:http's BrowserClient; close() completes the abortTrigger of a request still on its way after five seconds, so that HttpTransport aborts it, which fails the running call with a FinTsTransportException, where it waited for the answer up to the transport's timeout; more bank data fail with FinTsProtocolException (FormatException from Mt940 and Camt): an answer to another message than the one sent or broken in its framing, an approval asked for by more than 3 further pages of a query or asked again in answer to an approval, a balance or camt transactions of another account, MT940 statements that do not balance or hold no field, a camt document without any report, statement or notification, XML that XML 1.0 does not allow, an empty element nested more than 100 levels deep, a camt date with a UTC offset beyond ±14:00, with anything else after the date or with 24:00:00 and a fraction of a second other than zero, a camt currency other than three capital letters, a query of more than 200,000 statements and transactions, and in FinTS 4.1 an answer whose body holds an encrypted or compressed part; a SEPA account list the bank answers by ending the dialog is not asked for again by the same client; a SEPA keyword in the text the payer or payee writes no longer counts, nor in camt an EREF, MREF or CRED that only that text states; the subfields of an MT940 purpose or name are joined with a blank after one that ends a phrase, and a camt purpose line longer than 35 characters goes on in the next one without a blank; in FinTS 3.0, FinTsFeedback.parameters and TanChallenge.reference hold one character per byte the bank sent; TanChallenge.image is null for an SVG or an alias such as image/jpg and has its mimeType in lower case; flickerCode is null for a code that would not render as the bank sent it; Account keeps IBAN and BIC without blanks and in capitals; in FinTS 3.0, an integer of the parameter data in hex or beyond ±(2^53 - 1) counts as not stated, and an account of three elements in the user parameter data is read as account number, sub-account and country code unless its second element, but not its third, has three digits; a FormatException of Mt940, Camt, Amount.parseDecimal or FlickerCode.parse prints its message only; TanMedium.toString leaves out the medium name and shows the status by its name, such as active, FinTsFeedback.toString shows the return code only, and BankMessage.toString neither subject nor text; some messages an app may match on read otherwise: malformed XML gives 'Invalid XML:

Fixes from a review of the whole package against the specification; fints-ts 0.4.0 has the same for FinTS 3.0:

  • A one-step synchronization the bank refuses with 9955 and 3920, as PIN/TAN B.8.2 has it for a user bound to two-step methods, is repeated with a two-step method the user may use. It was a refused login that clearLoginRefusal could not get past, since the next login was a one-step synchronization again.

  • A refused login the session takes care of, such as a TAN method the user may not use, no longer outlasts a remedy that fails, such as a tanMethodSelector that throws or a close() while it runs. The call fails with that error, and neither loginRefusal nor client.state keeps a refusal the bank gave for anything but the PIN.

  • A damaged refused-login part of client.state fails closed: the client restores a refusal without return codes and sends the PIN no more until clearLoginRefusal. It discarded the whole state, and could send a PIN the bank had refused.

  • The bank's dialog abort message (Formals B.7.6), which may name the dialog unbekannt and the message 9999, fails the call with the bank's text as a FinTsBankException, a FinTsDialogAbortedException for 9800, and no dialog end follows it. The call failed with FinTsProtocolException ('The answer belongs to another message than the one sent'), and the client sent a dialog end the bank had already ended.

  • getBalance (HKSAL 7 and 8) and getTransactions (HKKAZ 7, HKCAZ) name an IBAN only with its BIC, and the national account next to it only where HISPAS allows it ("Nationale Kontoverbindung erlaubt", Messages B.3.2). An account without BIC goes out with its national account.

  • In FinTS 3.0, FinTs3Client throws an ArgumentError for a user ID or customer ID longer than 30 characters (data type id). The bank refused such a login with a syntax error, which counted as a refused login.

  • close() no longer fails, then or later, for an error of the logger, onBankMessage or onWarning, which hid the error of the call before it.

  • In FinTS 4.1, a client whose TAN method is chosen, by selectTanMethod or from client.state, logs in without the synchronization that only tells the TAN methods. That cost a second login and approval, for a bank that sends no user parameter data at every start.

  • In a browser, HttpTransport sends no cookies or referrer and lets no cache keep the exchange (credentials: 'omit', referrerPolicy: 'no-referrer', cache: 'no-store').

  • MT940: the counterparty's IBAN and BIC come from subfields 31 and 30 only, no longer from IBAN+ and BIC+ in the purpose, which the payer writes. Subfield 30 next to an IBAN is the BIC only where it reads as one, else the bank code. A :61: reference KREF+ takes the KREF of :86:. A balance date 0 or 000000 means no date (openingDate, closingDate), where it failed the statement. A leading byte order mark or blank no longer hides the first :20:.

  • camt: a structured creditor reference (RmtInf/Strd/CdtrRefInf/Ref) is the purpose where the remittance information states no text, and remittance information of more than 65,536 characters fails with FormatException.

  • Only a challenge that starts with CHLGUC and states the length of its code counts as a combined one, and blanks around the length of its instruction text are dropped. FlickerCode.parse keeps a blank in the data of a code, and refuses a start code of length 0 or with bit 6 set, and a tenth control byte that announces another. Where HHD_UC holds neither an image nor a flicker code, the code in the challenge text counts. A photoTAN container without image bytes is no image.

  • TanAnswer.tan('') cancels an app approval, as it does a TAN challenge, where it failed with an ArgumentError.

  • An answer that rejects nothing but brings no balance fails getBalance with FinTsProtocolException, not FinTsBankException.

  • A user parameter data account extension padded with NBSP or NEL is read, FinTs4Client.queryVersions closes the transport it is given also for a URL it refuses, and TanChallenge.tanMediumName names no medium the client did not send. The README saves client.state after close(), whose answers may change it.

  • In FinTS 4.1, an answer whose body holds an encrypted or compressed part (EncryptedData, XML-Syntax V.3 and V.4), such as its response list, fails with FinTsProtocolException, as an encrypted body does. The part was skipped, so that getTransactions returned no transactions.

  • In FinTS 4.1, a PIN or TAN with control characters below U+0020, TAB, CR and LF included, U+FFFE, U+FFFF or half of a surrogate pair is not sent, since XML 1.0 or the FinTS type an rules them out. The PIN fails with an ArgumentError named pin, in FinTs4Client and clearLoginRefusal, the TAN with FinTsTanException, as another TAN the TAN method rules out. Such a PIN or TAN went out, and the bank could read another one and count a failed attempt.

  • camt: a date with anything after YYYY-MM-DD but a time or a UTC offset as XML Schema has it (Z or up to ±14:00), such as 2024-01-0299, is unreadable: Camt.parse throws FormatException, and getTransactions fails with FinTsProtocolException. It counted as the date written. In FinTS 4.1 such a date counts as not stated.

  • camt: the currency of an amount (Ccy) is read without blanks around it, and one that is not three capital letters, such as eur, fails Camt.parse with FormatException and getTransactions with FinTsProtocolException. It became the currency of the amount as written, and one with blanks around it did not match that of the entry, which kept a batch booking from being split.

  • MT940: the subfields of the purpose (?20 to ?29, ?60 to ?63) and of the name (?32, ?33) are joined as a bank cuts its text into lines of 27 characters, as camt purpose lines are at 35: one of 27 characters or more goes on in the next as it is, and any other ends a phrase, which the next one follows after a blank. ?20Text one?21text two reads Text one text two, where it read Text onetext two; the SEPA keywords are read from the text so joined.

  • The TAN the user enters is checked before it is sent: one longer than TanMethod.maxTanLength, with anything but the digits 0 to 9 for a TanMethod.numericTan method (in FinTS 4.1 also one whose parameters leave out FormatTAN), or, in FinTS 3.0, with characters outside ISO 8859-1 fails the call with a FinTsTanException without return codes, whose message names the rule but not the TAN, and the client ends the bank dialog, so that the next call logs in anew. Such a TAN went to the bank, which counted it as a failed attempt and may cancel the order or block the TAN medium, and the call failed with the bank's FinTsTanException, for a TAN asked for an order with the dialog kept open. Full-width characters, as East Asian input methods type them, count as their ASCII counterparts; they went out as UTF-8 (FinTS 3.0) or unchanged (4.1)

  • getBalance and getTransactions refuse an account the bank names neither in the user parameter data nor in the SEPA account list with FinTsUnsupportedException, without sending the query, where the user parameter data list all permitted transactions (UPD-Verwendung 0, UpdUsage 0 in FinTS 4.1): the bank permits nothing they leave out; the login and the SEPA account list may have gone out. Where the lists are incomplete, such an account goes out with its account number, sub-account, IBAN, BIC, bank and country code and currency only. It was sent, such as one with a typo or of another bank, as if it permitted anything, unless the allowedTransactions and allowedTransactionsComplete the app had set on it ruled the query out; they also chose the transaction format of TransactionFormat.auto, and count for nothing now. An account built from its IBAN alone, where the user parameter data name accounts by number only, is found through the SEPA account list: where the bank does not deliver that list, it counts as named nowhere. So may one built from its number alone where the user parameter data name accounts by IBAN only, as FinTS 4.1 ones may; it went out with its number

  • A refused login is kept in client.state, as the bank's return codes, so that a client restored from it does not send the PIN either, also one for another server of the bank or the other FinTS version; the state holds nothing of the PIN, and one saved by 0.2.0 or earlier holds no refusal. The refusal lived in the client only, so that an app that built a new client for each attempt sent a refused PIN again each time. Run the clients of one user one after another, each restored from the state the one before saved: the state saved last wins

  • So is the count of logins whose answer the client could not read: after two in a row, also across restored clients, the client refuses the login itself, with a FinTsLoginRefusedException without return codes. It was a FinTsBankException, and a new client sent the PIN again

  • FinTsClient.loginRefusal tells the refused login before any call, and FinTsClient.clearLoginRefusal(pin) lifts it with a PIN the user has entered anew. It ends the open dialog, so that the next call logs in with that PIN, and forgets the TAN medium, which the bank may have refused. It cannot lift new login data (3072) and throws their FinTsLoginDataChangedException instead. An app that created a new client to retry after a refused login calls clearLoginRefusal now; a class that implements FinTsClient needs both members

  • A refused login is a FinTsLoginRefusedException, which FinTsPinException and FinTsLoginDataChangedException now extend. It was a plain FinTsBankException, and a FinTsDialogAbortedException where the bank ended the dialog in answer to the login, after which, the README said, the next call logs in anew, though the client did not log in again; on FinTsBankException still catches it. New login data next to an error in the answer to a login are a FinTsLoginDataChangedException as well, unless the error rejects the PIN, which stays a FinTsPinException; such an answer was a plain refusal, after which a 3920 in it made the client log in once more with the old data. So are new login data next to an error about the order a FinTS 4.1 login carries, the lookup of the TAN media, where the bank keeps the dialog open, which the client then ends; it took them for a rejected list and logged in with the old data again

  • Where the client has no TAN method or medium to log in with, the call fails with the new FinTsTanSetupException, which is no FinTsUnsupportedException: a TAN method that needs a medium the client could not learn, a one-step synchronization the bank refuses where every method the user may use needs a medium, and a bank that offers the user only TAN methods the client cannot run, such as those of process variant 1. These were FinTsUnsupportedExceptions, which stand for a transaction the bank does not offer, so that an app could hide a feature where the user had only to pass a medium to selectTanMethod; an app that catches FinTsUnsupportedException there must catch FinTsTanSetupException now

  • FinTsConfig throws an ArgumentError for a country code of other than three digits (280 for Germany) and, with country code 280, for a bank code of other than eight digits, such as 370 400 44, before anything is sent. Only an empty value was refused: DE or a BLZ with blanks went out in the anonymous dialogs and then with the PIN in a login the bank refused

  • FinTsConfig throws an ArgumentError named url for a URL with a user name or password, and the message leaves them out. Such a URL was accepted, and the transport sent the user name and password to the server with every message, as HTTP Basic authentication

  • FinTsConfig.url is the URL as WHATWG URL writes it, which is what a browser sends: an empty path becomes /, an IPv6 address takes its short form (RFC 5952), such as [2001:db8::1], an IPv4 address its four decimal parts, such as 127.0.0.1 for 127.1, a ' in the query becomes %27, and a host with other than ASCII characters becomes punycode, such as xn--bcher-kva.example for bücher.example. FinTsConfig throws an ArgumentError named url for a URL WHATWG URL refuses, such as one with a port above 65535 or the host bank.123, and for a host with other characters than ASCII and the letters of ISO 8859-1 and Latin Extended-A (such as ä, é or ł), or with one of the few of these letters that a browser maps to others, such as ij, since the package does not implement the mapping (UTS #46) a browser applies before punycode. FinTs4Client.queryVersions takes its URL the same way, and HttpTransport.post sends to the URL so: for a URL that WHATWG URL refuses or whose host the package cannot convert, it fails with a FinTsTransportException before anything is sent. The URL was kept as given, so that a host such as bücher.example failed every request on native platforms before sending. A saved state names the server by its host as FinTsConfig.url writes it: one saved by 0.2.0 or earlier for a host written otherwise, such as an IPv6 address in its long form, counts as another server's, so that the next login synchronizes anew

  • FinTsConfig drops leading and trailing blanks of the bank code, country code, login name, customer ID and product, as FinTS sends them without (Formals B.4.1): config.userId of ' alice ' is alice, and a state saved for alice holds for alice as well. The values were kept as given: a padded spelling was another user to client.state, whose state was dropped at the cost of a new synchronization, a padded product ID or version failed the FinTS 3.0 length check although it would have gone out short enough, a padded bank code became Account.bankCode where the bank stated none, and FinTS 4.1 sent the blanks

  • In FinTS 3.0, FinTs3Client throws an ArgumentError for a bank code with characters outside ISO 8859-1 or longer than 30 characters, the field's limit. Such a bank code went out, as UTF-8 or too long, in the anonymous dialogs and then with the PIN in a login the bank refused

  • An ArgumentError names the rejected argument but leaves out its value, which may be a login name, a customer ID or a URL with a password: invalidValue is null, and the message says no more than, for example, "At most 25 characters in FinTS 3.0". It carried the value and printed strings and dates in its text; the one for login data or a product FinTS 3.0 cannot send named no argument, and now names userId, customerId, productId, productVersion, bankCode or pin. FinTsConfig checks the URL first, then the country code, the bank code, the login name, the customer ID, the product ID and its version, each completely, and names the first value at fault. A period whose start lies after its end fails with 'from lies on a day after to'

  • Any error a transport throws, another FinTsException or an Error included, fails the call as a FinTsTransportException without statusCode that keeps only the error's message, or only its type where it is of a type the package does not know (see below), and the client drops the dialog without a dialog end, as after a broken connection, so that the next call logs in anew. A transport's FinTsPinException or FinTsBankException passed for the bank's answer: it had the anonymous request for the bank parameter data sent once more and the synchronization go out with the PIN, a SEPA account list failed so ignored, and the dialog go on, or end, under a message number the bank had seen; an Error, a thrown string included, reached the app as it was, and the dialog end went out under the failed message's number

  • HttpTransport throws an ArgumentError for a timeout that is not positive or longer than 2147483647 milliseconds, which a timer on the web cannot wait, and for a maxResponseBytes that is not positive. It took them, and then failed every request, or with a negative size limit every answer

  • close() gives a request on its way five seconds to bring its answer, which counts as any other: the logger gets it, and the saved state keeps what it brings. After that, it completes the request's abortTrigger (see below), on which HttpTransport aborts the request, and the running call fails with a FinTsTransportException 'Request aborted'. The client drops that request's dialog without a dialog end, as after any transport failure; the ends of its other dialogs, such as one still open, have five seconds once that request is over, are aborted the same way, and none goes out later. So close() resolves within about 5 seconds where the bank has stopped answering, and 10 at most, with HttpTransport or a custom FinTsTransport that stops a request on its trigger. It waited for the answer up to the transport's timeout, 90 seconds by default, and as long again for a dialog end the bank left unanswered. The client stops waiting then also for a transport that ignores the trigger

  • FinTsTransport.post takes an abortTrigger, a Future<void> as package:http's AbortableRequest takes it, which the client completes once the time close() gives the request is up. Every implementation must add the parameter to its post; the client stops waiting for one that ignores it all the same. HttpTransport hands it to its HTTP client and stops waiting once it completes, also where the client does not take package:http's abortTrigger, and the request fails with a FinTsTransportException 'Request aborted'. Each request gets a trigger of its own, so that closing one client aborts none of the requests of another that shares its HttpTransport. HttpTransport ended a request at its timeout only

  • HttpTransport.close() closes its own HTTP client once the requests on their way are over, so that a client that shares the transport with one that is closed still gets the answer to its request on its way. It closed the HTTP client at once, which broke off that request. Once those requests are over, a request posted through the transport fails where it has its own HTTP client, as it did, so give each client a transport of its own

  • At most 3 further pages of a query may ask for a TAN or an app approval, as its first page may, which serves a bank that asks once on a later page or on every page of a query of up to four pages; an app approval counts once, however many status requests it takes. Where a fourth asks, the call fails with FinTsProtocolException, which asks for a shorter period, without asking the user, and the client ends the dialog, so that the next call logs in anew. Each page asked the user anew, up to 1000 times for one query, and a cancel lost the pages already approved

  • An answer to a TAN or an app approval that asks for an approval once more (0030, 3955) fails the call with FinTsProtocolException, and the client ends the dialog. It was read as done: as a login without user parameter data, as an order without data, such as no transactions, or, for a 3955 status answer, as the approval, and the dialog stayed open

  • An answer must belong to the message the client sent: its header and trailer carry the number of that message, and its dialog ID, once the bank has assigned one, and the message it refers to (Bezugsnachricht) are those of that message; in FinTS 4.1 its header carries the number of the message and, where it states them, the user and bank references of the dialog. Any other answer fails the call with FinTsProtocolException before anything of it is kept, and the client ends the dialog; at login it counts as a login whose answer the client could not read. The client took any answer for the one to its message, so that a relay or proxy that mixed up answers handed getBalance and getTransactions the balance and transactions of another user, under the account the app had asked for, without error

  • A FinTS 3.0 answer must be one complete message, framed as the specification asks: a binary length of anything but digits, binary data that reach beyond the message or are not followed by a separator, text that starts with an unescaped @, an escape character at the end, a last segment without terminator (also inside the encrypted part and in the saved parameter data), two messages run together and an encrypted part (HNVSD) without binary data fail with FinTsProtocolException. The client read a binary length in hex, with a plus sign or with blanks, such as @0x3@, as that number and any other malformed or overlong one as text, dropped the bytes after binary data, which could swallow whole segments, dropped an escape character at the end and an unterminated last segment within the encrypted part, merged two messages run together unless both were encrypted, so that another dialog's answer appended to the real one added its transactions, and read an empty encrypted part as an answer without segments

  • A FinTS 3.0 answer in base64 is read as UTF-8, so that one after a UTF-8 byte order mark, as .NET and Java servers may write it, or one with Unicode blanks such as a no-break space or U+3000 between its characters is read. It was read as ISO 8859-1, so that such an answer failed with FinTsProtocolException 'Malformed bank data: Not a FinTS message: no message header', while a lone byte 0xA0 counted as a blank; now that byte fails the answer

  • In FinTS 3.0 parameter data, an integer counts only in decimal digits, with an optional sign and blanks around, and within ±(2^53 - 1), as a JavaScript number holds it exactly; one in hex, such as 0x10, or beyond those bounds counts as not stated: a segment version, the version of the bank or user parameter data, which the client then reports as 0, Account.typeCode, the TanMethod lengths, counts and polling parameters, the PIN lengths, the maximum message size and timeouts and the dialog language. An integer in hex was read as such: a maximum message size of 0x10 refused every message above 16 KB, a process variant 0x1 marked a TAN method as one the client cannot run, and a polling parameter 0x10 waited 16 seconds

  • getBalance fails with FinTsProtocolException where the balance the bank returns names another account than the one asked for, also where it returns a single one, and so does getTransactions in camt where an answer (HICAZ, FinTS 4.1 AcctMvmtsSpecifiedPeriodCamt) names another account or none; MT940 is not checked, since banks write its account line (:25:) in many ways. A single balance was taken as it was, and camt transactions were read without a look at the account they name, so that another account's were returned as those of the account asked for

  • A SEPA account list the bank answers by ending the dialog counts as rejected at once: the call goes on without it, and only a new client asks again. The next call asked once more, which cost every client of a bank that always ends the dialog in answer another login, and counted only a second such answer as a rejection

  • MT940 statements are checked against their balances: Mt940.parse, and with it getTransactions, which fails with FinTsProtocolException, rejects a statement whose transactions do not lead from its opening to its closing balance, one that states only one of the two, one of them, its account (:25:), its number (:28C:) or its creation date (:13D:) twice, balances in another currency than the statement, and a balance or creation date it cannot read. Where a bank wraps :86: at a fixed width, a payer could start a line of a purpose with :61:…, :25:… or :13D:… and so add a transaction of any amount, replace the account or move the booking year, without error: each of these fields overwrote the one before, an unreadable balance or creation date was skipped, and the balances were never compared. The check misses such lines that add up to nothing, and statements without balances, such as pending transactions (MT942)

  • Mt940.parse throws FormatException for text that holds no field, such as - or a bank's error text, also where it is only the pending part of getTransactions; blank text still gives no statements. It returned no statements, so that getTransactions gave fewer transactions or none, without error

  • A camt document without any report, statement or notification (Rpt, Stmt, Ntfctn in the message of the document, as ISO 20022 places them) is malformed: Camt.parseTransactions throws FormatException, and getTransactions fails with FinTsProtocolException. Such a document passed as one without transactions, and the entries in a document of another shape, such as <Document><Ntry>, counted

  • XML from the bank is read as XML 1.0 requires, in camt documents and FinTS 4.1 answers: a document type declaration, an entity reference other than a character reference or one of the five predefined ones, a character reference to no character (&#0;, half a surrogate pair, beyond Unicode, or with a sign, blanks or a capital X), an attribute without a quoted value or stated twice, < in an attribute value, text or CDATA outside the root element and an XML declaration anywhere but once before it are malformed (FinTsProtocolException, or FormatException from Camt). package:xml took them: unknown and unterminated references stayed in the text as written, such as a currency &euro;, &#0; gave NUL, Ccy=EUR and Ccy without value gave the currency EUR and an empty one, the first of two attributes counted, and a document type declaration was skipped

  • The XML declaration of camt documents and FinTS 4.1 answers, <?xml and a blank or ?>, ends at its first ?>, and what it states is not read, as in fints-ts. package:xml read its attributes up to the ?> after the last of them, so that <?xml version="1.0" encoding="?><Evil/><?x "?> hid the element <Evil/>, which is now a root element of its own: a document after it has two and is malformed (FinTsProtocolException, or FormatException from Camt)

  • An empty element counts toward the 100 levels an XML document from the bank may nest, as the same element with an end tag does: <b/> inside 100 open elements is malformed (FinTsProtocolException, or FormatException from Camt). It did not count, so that such a document passed

  • The FormatException of malformed XML, in camt documents and FinTS 4.1 answers, names the first fault in the document, one in its nesting included, and, unless it is in an entity reference, the fault's position, which FormatException.offset holds as well: 'Invalid XML: unexpected end tag b at position 7' for <a></b>, 'Invalid XML: elements nested deeper than 100 levels at position …' and 'Invalid XML: more than 500000 nodes at position …'. The faults package:xml found read 'Invalid camt document: …' or 'Invalid XML response: …' in package:xml's words, a fault in the nesting was reported after the others, and the limits read 'XML nested more than 100 levels deep' and 'XML with more than … nodes'

  • A camt date, and a FinTS 4.1 time, with a UTC offset beyond ±14:00, such as +14:30, or with 24:00:00 and a fraction of a second other than zero, such as 24:00:00.5, is unreadable, as XML Schema has it: Camt.parse throws FormatException, getTransactions fails with FinTsProtocolException, and a FinTS 4.1 time counts as missing. An offset up to ±14:59 was read, so that 2024-03-15T10:00:00+14:30 was dated 14 March, and 24:00:00.5 was midnight of the next day

  • A query that would build more than 200,000 statements and transactions, booked and pending together, fails with FinTsProtocolException, and so do Mt940.parse and Camt.parse with FormatException past 200,000 in one parse: ask for a shorter period then. A camt batch booking of several transaction details counts once as a whole and, where every detail states its amount, once more for each detail. The parsers built them all, so that a hostile answer within the bounds of a query, such as an MT940 page of 16 MiB with some 700,000 transactions, could exhaust the memory

  • Camt.parse reads the credit/debit indicator and the dates of a camt entry before the value of its amount, and reports a fault in them first, also in an entry beyond the 200,000 statements and transactions. It reported a fault in the amount's value first

  • A SEPA keyword in the text the payer or the payee writes, from the first SVWZ+, ABWA+ or ABWE+ on, is part of that text, and a keyword that occurs twice has no value, in SepaPurpose, MT940 and camt: the purpose then is the whole text. A CRED+, MREF+, EREF+ or IBAN+ the payee wrote after the bank's value replaced it, so that a direct debit could come with the creditor ID of a creditor the app trusts and an MT940 transaction with an IBAN the payer chose; of a keyword that occurred twice, the last counted

  • The EREF, MREF and CRED of a camt transaction's purposeCodes come from their elements only (EndToEndId unless NOTPROVIDED, MndtId and the creditor ID), never from the remittance text, which the payer or the payee writes; with the elements they stand where the text names them, and after its keywords otherwise. Where the bank stated no element, the keyword of the text stayed, so that a payee could pose as a creditor the app trusts

  • In FinTS 3.0, FinTsFeedback.parameters, and with them the new login data of FinTsLoginDataChangedException, and TanChallenge.reference hold one character per byte the bank sent (ISO 8859-1, the FinTS character set), as the client sends them back: text a bank sends there in UTF-8, such as Müller, reads as ISO 8859-1 shows it (Müller). They held the text decoded as UTF-8 where it was valid UTF-8, so that a position to continue at or a TAN order reference went back in other bytes than the bank had sent

  • TanImage.tryParse, and with it TanChallenge.image, takes PNG, JPEG, GIF, WebP and BMP images only, their MIME type in any case, and TanImage.mimeType is in lower case then. It took any image/ type, SVG included, which may carry scripts that run where an app shows the image as a document; refused IMAGE/PNG and Image/Png; and kept image/PNG as the bank wrote it. An alias such as image/jpg or image/x-png gives no image now

  • FlickerCode.parse refuses a code that would not render as the bank sent it, so that TanChallenge.flickerCode is null for it: one with characters after the length it states, a data element length of 0 or above 63, data other than printable ASCII, or more data than its length fields can state, more than 15 bytes in an element in HHD 1.3 or 255 bytes in all. Such a code was shown altered on the TAN generator: with an empty element, a length masked to six bits, the characters after its length dropped, a character beyond ASCII sent as one byte or as two, or a length that overflowed its field. HHD_UC data are read as the challenge text is, blanks and line breaks left out; a byte outside printable ASCII anywhere in them gave no flicker code

  • In FinTS 4.1, TanMethod.maxTanLength comes from the method's two-step parameters (LenInpChallenge, the longest input the method takes), as in FinTS 3.0, and from MaxLenTAN only where they leave it out. It came from MaxLenTAN, the counterpart of a field of the FinTS 3.0 PIN/TAN parameters (HIPINS) that the client does not read

  • Bank parameter data from the anonymous dialog serve only until a dialog signed with the PIN brings the user's: until then, the client reports version 0 for them, so that the bank sends its parameter data anew (PIN/TAN B.4.3.1); in FinTS 4.1 it leaves out BpdVersion, as it does without parameter data. It reported their version, so that the bank never sent the user's: where the anonymous ones lacked the two-step TAN methods, as a bank that rejects the anonymous announcement of strong authentication may send them, the client logged in with the one-step method, which PSD2 banks refuse; where they lacked the PIN/TAN parameters (HIPINS), it sent orders without the TAN the bank asks for and did not check the PIN's length. client.state keeps where they came from; the bank parameter data of a state saved by 0.2.0 or earlier count as anonymous ones, so that in FinTS 3.0 the bank sends them anew, once, at the next login

  • An account the app builds itself, such as Account(bankCode: …, iban: storedIban), goes out as the bank knows it: getBalance and getTransactions take the account of getAccounts it matches, by IBAN or else by account number, send the account number, sub-account, IBAN and BIC the bank states of it, take its currency for statements that state none, and check the query against the transactions the bank permits for that account. Only IBAN and BIC were filled in, from the SEPA account list, and not at all where the app gave both: an account built from its IBAN went out without the account number a national account takes (FinTS 3.0 HKSAL and HKKAZ version 6, FinTS 4.1 AcctBal and AcctMvmtsSpecifiedPeriod version 1), in FinTS 4.1 even without its IBAN where neither the app nor the SEPA account list gave its BIC, and escaped the permission check where the user parameter data name accounts by number (HIUPD version 5); one built from its number went out without IBAN and BIC where the user parameter data state them, as the account extension does; a changed BIC or a padded account number went out as the app had stored it. The check uses the bank's lists for the account the client can link the app's account to: one only the SEPA account list names lists none, so that only the bank can tell, as where FinTS 4.1 user parameter data name an account by number and the list by IBAN and BIC, without its number. To tell which account it is, the call asks for the SEPA account list where getAccounts would, also for an account with IBAN and BIC, for which it did not ask: once per version of the user parameter data where the bank names accounts in the list, and again in each client where the bank sends user parameter data of version 0 or none, rejects the list, ends the dialog in answer to it or names none

  • Account keeps IBAN and BIC in their electronic format, without blanks, U+0085 (NEL) among them, and in capitals, however the app writes them; blanks alone are null. An account the app built with its IBAN as printed, in groups of four, or in small letters matched none the bank had named, so that the client sent queries the user parameter data rule out instead of failing with FinTsUnsupportedException, asked for a balance the account extension carries, lost the currency the user parameter data state, and sent the IBAN as written, a NEL as the byte 0x85

  • On the web, a zero debit is zero: Amount stores 0 for negative zero, as of -0,00, of 0,00 with a debit mark in MT940, camt or a FinTS 3.0 balance, or of -Amount(0, 2, 'EUR'), and an integer -0 in the FinTS 3.0 parameter data reads as 0. Such an amount was negative zero, which differed from Amount(0, 2, 'EUR') in ==, compareTo, sets and hashes, and which jsonEncode wrote as -0.0

  • A SEPA account list that names no account is kept for the client that read it only, as a rejected one is, and not in the saved state: the next client asks again, also where a state saved by 0.2.0 or earlier holds such a list. Saved, the empty list of a single faulty answer kept every client restored from the state from asking again, and left the accounts without BIC, until the bank changed its user parameter data; with the change above, it would also leave an account the app builds from its IBAN named nowhere where the user parameter data name accounts by number

  • New login data in the answer to a login that asks for a TAN or an app approval end the dialog before the user is asked. The client asked first, and where the approval then failed, such as for a TAN the bank rejected or the user cancelled, the next call logged in again with the old data

  • A wrong PIN the bank reports in its answer to the end of a dialog refuses the login, as anywhere else, and is kept in client.state; any other error in that answer still counts for nothing. The answer went unread, so that the next call logged in with the PIN the bank had called wrong

  • A call sends at most three logins the bank refuses: another TAN method and a new customer system ID count once per call each, also in getTanMedia, which may log in twice. They counted once per login loop, so that getTanMedia could send four

  • The client lets go of the PIN once closed, and once a refused login outlasts the call that met it, also one restored from client.state and the client's own refusal after two unread logins, until clearLoginRefusal. A Dart string cannot be wiped, but nothing in the client can sign with it then. It kept the PIN for its whole lifetime

  • While the client polls for an app approval by itself, a status answer with new instructions replaces the open prompt: the callback gets the next attempt with them, the earlier prompt's TanChallenge.resolved completes before, and that prompt's answer no longer counts. New instructions reached the user only in the prompt shown after a report of the approval, never where the user cannot report it (manualConfirmation false), and the resolved of every prompt completed only at the end of the wait. Close only the prompt whose resolved completed, as the README says

  • The client lets go of a TAN prompt once its TanChallenge.resolved completes, also where the callback never returns, as a prompt does that closes on resolved but never completes its Completer. It held such a prompt, and through it the approval, until close(), so that a long-lived client kept one for each app approval

  • getTanMedia asks the bank unless the same call has just looked the media up to choose the medium, so that it shows a medium registered since. The list of a lookup that found no active medium is handed out by every call, until selectTanMethod or clearLoginRefusal, and a TAN method the session switches back to after a refused login has its media looked up anew. The next getTanMedia returned the list of any earlier lookup once without asking the bank, also after selectTanMethod had named a medium; the one after it failed with FinTsUnsupportedException where the lookup had found no active medium; and a method switched back to failed every call until selectTanMethod

  • FinTS 3.0 polling parameters of an app approval (HITANS) that state more seconds than a Duration holds, either way, count as the longest Duration of their sign in TanMethod, ±9,223,372,036,854 seconds: for a positive one the client waits a minute before each status request, as for any long wait, and for a negative one it asks the bank at once and then every second, as for any negative wait. Beyond ±(2^53 - 1) they count as not stated, which gives the waits of 2 seconds. They overflowed into a Duration of the other sign, so that the client asked the bank at once and then every second for 10000000000000 and 9223372036854775807, and waited a minute each time for -9223372036855

  • Parameter data come only from the answers to a dialog's opening: the login, which may be the synchronization, and its approval. Bank and user parameter data and the customer system ID were taken from every answer, also to an order, a further page, an order's approval or the lookup of the TAN media, so that partial bank parameter data a bank repeated there replaced the login's, also in client.state: the TAN the PIN/TAN parameters ask for an order, or the two-step TAN methods, were gone until the bank changed their version

  • User parameter data that name another user ID than FinTsConfig.userId are reported as version 0 (in FinTS 4.1 without UpdVersion), so that the bank sends the user's anew; a bank that names the user by another ID, such as an alias, sends them at every login. Their version was reported, so that another user's accounts, as where a relay had mixed up the answers to the synchronizations of two users, stayed, also in client.state

  • In FinTS 3.0, a customer system ID the bank rejects (9391) is dropped together with the user parameter data, which the next login delivers anew. They were kept and their version reported, so that user parameter data that came along with the rejected ID outlived it

  • Where the limits of the bank parameter data rule out a login, the client takes only the PIN lengths, where the anonymous dialog's parameter data state them (HIPINS), and the maximum message size from those, and only where their version differs from that of the kept ones, which stay; until the next login brings the user's, it reports version 0 for them (in FinTS 4.1 it leaves out BpdVersion). The anonymous dialog's replaced the user's, in getBankInfo and client.state as well, though a bank may give a user other ones than it gives anonymously (PIN/TAN B.4.3.1), and parameter data of the version kept, which tell nothing new, let the login go out

  • In FinTS 3.0 user parameter data, an account (HIUPD) is read by position, as account number, sub-account, country and bank code, so that a sub-account or bank code the bank leaves out is empty, except three elements whose second is a country code of three digits and whose third is not, the older layout without sub-account: account number, country and bank code. Three elements were read as account number, country and bank code, whatever they held, so that orders went out with the country code as bank code, such as 040 of 987654321::040, and with a sub-account as country code, such as 01 of 1234567890:01:280; one of two elements lost its sub-account

  • The complete balance of the FinTS 3.0 account extension states the account's productName, as a balance query does. It stated none

  • The FinTS 3.0 account extension of the user parameter data reads the time 240000 as midnight of the next day, like the other FinTS times. It voided the whole extension, its BIC, complete balance and data status included

  • Values the bank issued go back exactly as it sent them: the dialog ID, the customer system ID, the TAN order reference, the position to continue at and the TAN medium name. A medium name a bank sends in UTF-8 whose characters fit ISO 8859-1, such as Mein Händy, went back in ISO 8859-1, so that the bank did not know the medium and refused the login; client.state keeps such a name as the bank sent it (tanMediumNames). A value with blanks at either end went back without them, and a customer system ID in UTF-8 was saved decoded

  • client.state keeps the bank and user parameter data in the bytes the bank sent them. They were encoded anew from what the client had read, without needless escape characters and with binary lengths rewritten

  • client.state is read as other JSON tools write it: an integer written with a fraction or exponent, such as 2.0 or 1e0, as stores that keep numbers as doubles write it, counts as that integer, also the count of logins whose answer was lost, while a fraction such as 2.5 still damages the state; and a saved SEPA account without country code is one in Germany (280). A state with such an account, or on the Dart VM with such an integer, was discarded, at the cost of a new synchronization. On the web, an infinite number such as 1e400 damages the state, as on the Dart VM, and -0 is saved as 0: an infinite UPD version of the SEPA account list kept client.state from being saved, and -0 was saved as -0.0, which the Dart VM did not read

  • A challenge whose HHD_UC the bank sends as text rather than binary data takes its flicker code from the challenge text, as one without HHD_UC does. The text went for the HHD_UC, so that TanChallenge.hhdUc held it and a flicker code in the challenge text was lost

  • TanChallenge.plainMessage gives &nbsp; in a structured challenge as a no-break space (U+00A0), as HTML defines it and as &#160; gives it, so that an amount such as 10,00 EUR stays on one line, as the bank meant. It gave a plain space

  • An HHD 1.4 flicker code with three-digit data element lengths, as some banks send them, is read with three digits also where two-digit ones would fill its stated length. It was read with two, so that the TAN generator showed and signed other data than the bank meant, such as an empty first element and the second one cut differently

  • TanImage.toDataUrl() gives the image as a data: URL, for the src of an <img> only. There was none

  • A transport's error passes on its message only: FinTsTransportException keeps the message of a FinTsException, ClientException, FormatException, StateError, ArgumentError, UnsupportedError or TimeoutException, or the name of its type where that message is empty; that of a SocketException or TlsException with the message of its OS error where that says more, also where package:http wraps the SocketException in its ClientException, as in Failed host lookup: 'bank.example': nodename nor servname provided, or not known; that of an HttpException without its URL, and without the bytes written, the request included, that dart:io adds to 'Content size exceeds specified contentLength', also where package:http wraps it in its ClientException; a thrown String, and an Exception('…') as it prints, such as Exception: relay broke; and of an error of any other type only the type, such as Instance of 'RelayError' for a class of the app's own that implements Exception, since its toString may print the request. It kept the whole toString, with the type, a FormatException's source, a ClientException's URL and whatever else an error prints, such as the request with PIN and TAN; HttpTransport let an Error of its HTTP client through, and kept only the message of a ClientException that wraps a SocketException, such as Failed host lookup: 'bank.example'

  • HttpTransport rejects the answer of an HTTP client that followed a redirect all the same, or that answers from another URL (BaseResponseWithUrl), since the request, PIN included, may have gone to another address. It compares both URLs as WHATWG URL writes them, which is how a browser gives the URL of an answer, so that the answer to https://bank.example from https://bank.example/ is the bank's. It took a redirected answer, or one from another URL, for the bank's

  • In a browser, HttpTransport's own client sends with fetch itself rather than package:http's BrowserClient, also in place of a BrowserClient that runWithClient sets, unless that one sends credentials (withCredentials) or is of a subclass; a client of another class, and one passed to HttpTransport, is used as it is. It gives the HTTP status of an answer whose Content-Length is no number, such as abc, or 8, 8 for two headers, and reads such an answer within the size limit; a Content-Length of more digits than an int holds counts as too large, as in dart2js, also with dart2wasm. BrowserClient failed with 'Invalid content-length header' before the status was seen, so that an HTTP 500 to the anonymous request for the bank parameter data had no statusCode and did not go out once more without HKTAN, and a 200 answer was lost. A redirect fails with 'The server redirects the request, which the client does not follow'; it failed with the browser's 'Failed to fetch'. package:web, which package:http used already, is now a direct dependency

  • HttpTransport reports the HTTP status, the size limit or the redirect for which it rejects an answer also where cancelling the rest of the body fails, as it does for an answer cut off in a browser. The error of the cancel, such as 'network error', took the place of the reason, so that an HTTP 500 to the anonymous request had no statusCode

  • The FormatExceptions of Mt940, Camt, Amount.parseDecimal and FlickerCode.parse print their message only: toString(), and with it print(e) and '$e', leaves out the bank data they keep in source, such as FormatException: Invalid amount for 1.234,56. toString() printed the source after the message: the :61: line, balance, creation date or statement reference, the amount, the flicker code, which holds account data and amounts, or the camt value. The errors of an MT940 statement's structure, such as two accounts or transactions that do not add up to the closing balance, keep the statement's reference (:20:) in source, 'Unreadable MT940 balance' keeps the field, and an unknown entity or a character reference to no character in XML keeps the reference, such as &euro;

  • Two messages read otherwise: a negative amount next to a credit/debit mark fails with 'Negative amount with a credit/debit mark', in camt with 'Negative camt amount', and a FinTS 3.0 answer with two encrypted parts with 'More than one encrypted part (HNVSD)'. They read 'Negative amount besides its credit/debit mark' and 'More than one encrypted part'

  • TanMedium.toString shows the medium class, or the last digits of the card number, and the status by its name, such as TanMedium(M, active), never the name, which the user may have given the medium after themselves, such as Max’s iPhone. It showed the name wherever the bank stated one, and the status as TanMediumStatus.active

  • FinTsFeedback.toString shows the return code only, such as FinTsFeedback(3072), and BankMessage.toString shows BankMessage(…), so that print, '$f', logs and crash reports of warnings, refusals and bank messages collect none of the bank's texts and parameters. They showed code, text and parameters, such as the new login data of return code 3072, and subject and text, which may name the user. Show code, text and parameters, or subject and text, to the user; the message of a FinTsBankException still names its errors with the bank's texts and parameters, such as '9010: Konto gesperrt [DE89370400440532013000]'

  • The 128 MiB bound of a query holds for the last or only page too, and is checked before the position to continue at. It was checked only after a page that announced another, so that a last page could take a query past the bound

  • MT940 lines are separated by @@ wherever the first line of the data holds it, also where the data break the line between statements or at their ends, and getTransactions decodes each page on its own. A single line break, such as a CRLF after the last statement, made every @@ text: the first field took in the rest of the data, so that getTransactions returned no transactions without error, or failed with FinTsProtocolException where that field exceeded 65,536 characters; a page in another encoding than the first garbled the others, and one that started with a byte order mark of its own merged its first field into the purpose before it or lost its first transaction

  • A structured :86: field is one whose subfields start with ?. Any punctuation after the three-digit code counted as the separator, so that free text such as 100,00 EUR Miete or 100/2024 Beitrag lost its purpose or had it cut

  • camt entries count only right in a report, statement or notification, transaction details only in NtryDtls and purpose lines only in RmtInf, as ISO 20022 places them. An entry wrapped in another element, beside the report or in its group header became an extra transaction, a detail directly in the entry or in a Btch filled in the counterparty or split the booking, and the purpose took the Ustrd lines anywhere in the detail, nested details' ones included

  • The creditor ID of a camt transaction is the creditor's only: the SEPA identification right in Cdtr/Id/PrvtId or Cdtr/Pty/Id/PrvtId. It was the first SEPA identification of any related party or account, so that the initiating party, the debtor or the ultimate debtor or creditor, written before the creditor, set it, as did an organisation identification (OrgId)

  • camt purpose lines of 35 characters or more, blanks included, go on in the next line as they are, maybe before a blank; any other line ends a phrase, which the next one follows after a blank. Each line was trimmed before the cut was decided, so that a blank at the start of the next line or at the end of a 35-character line was lost and merged two words, such as Kunde and Nr 4711 into KundeNr 4711, and a blank followed a longer line

  • Camt.parse gives each report, statement or notification of a camt document as a CamtStatement with its reference, account (IBAN or other identification) and currency, so that an app importing a camt.053 file of several accounts does not book one account's entries on another. There was none

0.2.0 #

Fixes from a security review. An app may notice three changes: after two logins in a row whose answer the client could not read, it refuses to log in itself until a new client is created; more malformed bank data raises FinTsProtocolException instead of being read as something else; and a call running when close() is called fails with StateError, also where its last answer was already on its way.

  • A synchronization the bank refuses for the one-step method is repeated with a two-step method after a 3920 only where the bank names no other error than 9050 or 9800. Banks never list the one-step method in 3920, so a 3920 next to another error, such as 9941 "Signatur ungültig", sent a wrong PIN twice
  • close() stops a running call at its next message: after the request on its way, the call sends nothing but the end of its dialogs, and fails with StateError also where that request was its last, unless that request failed. A call still setting up the session went on with the synchronization, the lookup of the TAN media and the login, all signed with the PIN, and the login could send the user a TAN or an app approval nobody would answer
  • Bank data that would take hours, gigabytes or the whole stack to read is malformed (FinTsProtocolException, or FormatException from Mt940, Camt and Amount.parseDecimal): a FinTS 3.0 message of more than 1,000,000 data elements and segments or with more than one encrypted part, an XML document of more than 500,000 nodes besides text or one per 16 characters, whichever is more, or one nested more than 100 deep, an MT940 field of more than 65,536 characters and an amount written with more than 64 characters. Such data from a broken or hostile server blocked the app for minutes to hours, took 1 to 4 GB of memory, or failed with StackOverflowError, which an app that catches FinTsException does not handle
  • The 128 MiB a query may hold count each data element or XML node of its pages as 512 bytes, more than any of them takes once parsed. They counted the bytes received, so that many pages of short elements took gigabytes
  • Bare & in XML, line breaks inside an MT940 field, repeated MT940 subfields, a long FinTS 4.1 namespace, a camt entry with many transaction details, long lists of TAN methods and the matching of tens of thousands of accounts with the SEPA account list take linear time: 400,000 & took 40 seconds, 40,000 line breaks 13 seconds, and the accounts 105 seconds on every getAccounts. Elements nested in others of their name, such as a camt entry in an entry, are read once instead of once for each one around them, and Mt940.parseTransactions no longer keeps every statement, which took 4 GB for 128 MiB of empty ones
  • Account numbers, HHD_UC data, FinTS 4.1 parameter names and the namespaces of FinTs4Client.queryVersions are read without patterns that exhaust the stack on several megabytes, and a structured TAN challenge of more than 65,536 characters stays unformatted in TanChallenge.plainMessage
  • HttpTransport copies each part of a response as it arrives, and refuses a response that announces more than maxResponseBytes without reading it. It kept the parts dart:io hands out as views into its read buffers, so a server that sent 15 MiB in one-byte parts took about 1 GB of memory, despite the limit meant to prevent that
  • The maximum message size and the timeouts of FinTS 3.0 bank parameter data count as not stated above 9999, the four digits HIBPA allows, and a message is compared with the maximum size in whole kilobytes. Larger values overflowed: from 2^53 KB on every message was refused, also with the saved state, so the client could never reach the bank again, and a timeout above about 9.2 trillion seconds made every call log in anew and ask for another TAN
  • An MT940 booking date, which states only month and day, gets the year that places it within its statement, between the dates of the opening and the closing balance; where one of them is missing, as in an MT942 with its creation date :13D:, the period reaches the value date on that side. It got the year of the value date, moved only between December and January, so that a refund or correction booked in January 2026 with the value date of a debit from months before showed as booked in January 2025. A statement whose closing balance is dated before its opening balance, or whose creation date cannot be read, is malformed
  • An amount whose sign the bank sends in a credit/debit mark (a camt entry or detail, a FinTS 3.0 or 4.1 balance, the balance of the account extension) is malformed if it is negative; the account extension is ignored as a whole then. The mark negated such a value once more, so that -50.00 with a debit mark read as a credit of 50.00
  • A camt batch booking is split into its transaction details only where they add up to it in its currency, and stays one booking otherwise, as where a detail lacks its amount: charges booked with the batch, or a detail in another currency, were lost from the transactions or changed their currency
  • A camt booking or value date given as date and time with Z or a UTC offset is the day in Germany at that moment, and a FinTS 4.1 time with one, such as the end of a TAN challenge or the time of a balance, is the moment it names. Both were read as German time, so that a booking at 23:30 UTC counted on the day before and a time in UTC was one or two hours off. 24:00:00 is midnight of the next day. A camt date the client cannot read, such as one with the offset +0100, is malformed instead of being read as German time, and a value date is never silently the booking date; a FinTS 4.1 time in such a form counts as missing
  • A FinTS 3.0 message that does not end with the message end (HNHBS), or whose encrypted part is no binary data, is malformed. A response cut off in transit, which dart:io hands over as complete where the bank states no length and the TLS connection ends without close_notify, was read as a whole one: the segments after the cut, the return codes of a cut encrypted part, or whole accounts and pages of transactions went missing without an error
  • TransactionFormat.auto takes camt.052 where the bank offers it and MT940 cannot be requested for the account. Where incomplete user parameter data listed HKKAZ but not HKCAZ, it chose MT940 and failed with FinTsUnsupportedException if the bank offered no HKKAZ version the client implements
  • A challenge in the dialog that looks up the TAN media gives TanChallenge.tanMediumName as null where the bank names no medium. It gave the placeholder noref the client sends there, as FinTS 4.1 did whenever the bank asked for strong authentication in that dialog
  • A login whose answer is lost, times out or cannot be read, such as an HTTP error, a web page in place of the answer or an encrypted FinTS 4.1 answer, counts until a login the bank takes: after two such logins in a row the client refuses the login itself, and every later call that would send the PIN fails with a FinTsBankException without return codes. The bank may have counted such a login as a failed attempt, and an app that retried sent the PIN again on every call. The client cannot tell a login that never reached the bank from a lost answer, so a connection that fails twice in a row has the same effect
  • The bank's limits on the PIN's length apply to logins only, not to the later messages of a dialog the bank has opened with that PIN, and where the bank parameter data rule out a login, by the PIN's length or the message's size, the client fetches them anew in an anonymous dialog before it fails (a bank that does not answer anonymously cannot refresh them). Saved limits never changed, since new ones come only in answer to a login: after the bank had raised its limit for a longer PIN, every call failed with ArgumentError without contacting the bank until the app dropped its saved state. A synchronization that brought the first parameter data, which ruled out the PIN, failed its own dialog end, and the dialog stayed open at the bank
  • The answers of a FinTS 4.1 bank reach logger with the content of every element called PIN or TAN replaced by ***, found by the structure of the XML rather than a pattern, as is such markup quoted in text, and an answer that is not XML the client can read as a placeholder. The pattern missed a PIN the bank echoed as <PIN xmlns="…">, in CDATA or with a prefix such as fints-msg:, and every TAN it echoed, which reached the log in clear text
  • A camt document or FinTS 4.1 message declared as Windows-1252 is decoded in about four times its size in memory. It went through a list of every byte: a 16 MiB document raised the app's peak memory by 480 MiB
  • On native platforms, the default HttpTransport sends plain http, which allowInsecureUrl allows to loopback addresses only, to the address directly, past any proxy. It followed HTTP_PROXY, so that where the environment named a proxy without exempting localhost, as on many company machines, a login to http://localhost went to the proxy with the PIN unencrypted. Plain http also bypasses a client set with runWithClient, which may follow the proxy as well. https still follows HTTPS_PROXY and NO_PROXY, and a client passed to HttpTransport is used as it is

0.1.2 #

  • Link the homepage coderoftime.dev and the repository's new location in the pub.dev listing
  • Require Dart 3.11, the lowest SDK that package:xml 7 supports (0.1.0 and 0.1.1 claimed 3.8 but could not be resolved below 3.11)

0.1.1 #

  • Make repository and issue tracker appear in pub.dev listing
  • No code changes included

0.1.0 #

First release.

  • FinTS 3.0 and 4.1 PIN/TAN clients (FinTs3Client, FinTs4Client): accounts, balances and transactions (camt.052 and MT940/MT942), with paging and SEPA account details.
  • One-step and two-step TAN, PSD2 strong customer authentication and decoupled approval (pushTAN, SecureGo plus); TAN method and medium selection, chipTAN flicker codes and photoTAN images. The TAN callback answers with a TanAnswer.
  • Bank parameter data, customer system ID and the chosen TAN method are kept in an exportable state string, which holds neither PIN nor TAN.
  • A client never sends its PIN again once the bank has refused a login, so that a retrying app cannot lock the access; see the README for the return codes after which it logs in once more. An error in the TAN or app approval of a login, such as an expired TAN, is not a refused login, and a login that would lack a required TAN medium is not sent at all.
  • The bank's warnings reach the app through onWarning, apart from those the client acts on itself. New login data (3072) end the dialog and fail the call and all later ones with FinTsLoginDataChangedException, which names them.
  • An error thrown by onBankMessage, onWarning or logger fails the call once its exchange with the bank is over.
  • https only, no redirects, bounded request time, response size and query size; PIN and TANs are masked in the log, along with the sizes that would tell their length, and toString of the models leaves out account data.
  • Follows the parameter data: sends only what the user parameter data and HIPINS permit, takes BIC and complete balance from the account extension of the user parameter data and passes its data status on (Account.dataStatus, with mt940TransactionsId and camtTransactionsId), checks the PIN length before the first message signed with it, and logs in anew after a dialog was idle for longer than the bank's maximum timeout.
  • Parsers for MT940 (German structured :86: fields and SEPA keywords) and camt.052/053; malformed bank data raise FinTsProtocolException instead of being guessed, as does a request for a TAN or an app approval without a challenge, after which the bank has not executed the order.
1
likes
160
points
594
downloads

Documentation

API reference

Publisher

verified publishercoderoftime.dev

Weekly Downloads

FinTS 3.0 and 4.1 client for German banks. Retrieves accounts, balances, transactions and depot holdings with PIN/TAN, decoupled approval and PSD2 strong customer authentication.

Homepage
Repository (GitLab)
View/report issues

Topics

#fints #hbci #banking #psd2 #finance

License

BSD-3-Clause (license)

Dependencies

clock, collection, crypto, http, web, xml

More

Packages that depend on fints