Repository navigation
feat: SEPA credit transfers (HKCCS, instant HKIPZ) with Verification of Payee - #51
Open
kerimatilgan wants to merge 1 commit into
Open
kerimatilgan wants to merge 1 commit into
kerimatilgan wants to merge 1 commit into
Conversation
…of Payee - HKCCS v1 and HKIPZ v1 segments and a TransferInteraction; the caller passes the pain.001 document. FinTSClient gains canTransfer, transfer, confirmTransfer and transferWithTan. - Verification of Payee (HKVPP/HIVPP/HKVPA, HIVPPS parameters), required by banks since October 2025 (9076 "Namensabgleich erforderlich" otherwise). Message order follows recorded Atruvia traffic: order + HKTAN + HKVPP; polling with HKVPP alone (polling id and 3040 Aufsetzpunkt); result from the pain.002 report or the single result group; release with order + HKVPA + HKTAN. 3091 skips the release. - Dialog: run loop shared by start/continue/resume; it pauses on requiresVopConfirmation, polls while the bank is still checking, and lets an interaction add segments after HKTAN or send a message without HKTAN. - BPD stored before HIVPPS was understood get refreshed by the order dialog. - Tests with recorded bank answers (taken from phpFinTS' Atruvia integration tests); README section on transfers. Tested against meine Volksbank Raiffeisenbank (Atruvia): regular and instant transfer, matching and non-matching payee name.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds the first payment transaction to lib-fints: single SEPA credit transfers, regular (HKCCS) and instant (HKIPZ), including Verification of Payee (VoP), which German banks have required since October 2025.
The caller builds the pain.001 document; the library does not create SEPA XML.
Changes
TransferInteractionand newFinTSClientmethods:canTransfer,transfer,confirmTransfer,transferWithTan.ClientResponsegainsrequiresVopConfirmation,vop,vopPendingandvopWaitSeconds.start,continueand the newresumeshare one run loop. That loop pauses onrequiresVopConfirmation, polls while the bank is still checking (at most 10 polls, waiting as long as the bank asks), and supports two small hooks onCustomerInteraction:getSegmentsAfterTan()(HKVPP goes after HKTAN),withoutTan(the poll message has no HKTAN).transfer()then sets the stored BPD version to 0, so the order dialog's initialisation fetches them again.copilot-instructions.md.Message flow
The order of segments follows recorded Atruvia (Volksbanken) traffic, as found in phpFinTS' integration tests (
Tests/Unit/Integration/Atruvia/SendTransferVoPTest.php):Code 3091 means the bank needs no HKVPA: it continues with the TAN right away, or the transfer is already done.
An earlier attempt put HKVPP before the order, as hbci4java does. Atruvia rejected that with 9210 ("VOP-Auftrag ungültig").
Tests
HKCCS.test.ts: encoding and round trip.transferVop.test.tsreplays the recorded Atruvia answers (taken from phpFinTS) throughDialog:pnpm run buildandpnpm run test -- --runpass: 186 tests.Tested with a real bank
meine Volksbank Raiffeisenbank (Atruvia), SecureGo plus (decoupled):
Other banks are untested.
Not included
Batch (HKCCM), scheduled (HKCSE), standing orders, direct debits, the VoP opt-out (HKVOO), and stepwise ("S") pain.002 delivery. With "V" (full) delivery, intermediate reports are skipped.
I left the package version alone. Happy to split this up or adjust it to your conventions.