Skip to content

Fix: Add missing control sum (Summenfeld) to HKCCM/HKCME for SEPA batch transfers#560

Open
timrasche wants to merge 2 commits into
nemiah:masterfrom
mamisch-digital:master
Open

Fix: Add missing control sum (Summenfeld) to HKCCM/HKCME for SEPA batch transfers#560
timrasche wants to merge 2 commits into
nemiah:masterfrom
mamisch-digital:master

Conversation

@timrasche
Copy link
Copy Markdown
Contributor

When initiating a SEPA batch transfer (Sammelüberweisung) using the HKCCM or HKCME segments, some strict bank servers (e.g., Atruvia data centers for Volksbanken/Raiffeisenbanken) reject the request with the error:
HIRMS:5:2:3+9010::Summenfeld nicht vorhanden.

While some banks parse the total sum directly from the PAIN XML payload, others strictly enforce the HBCI specification, which requires the control sum to be explicitly declared in the segment parameters (e.g., HKCCM:3:1+...). Currently, SendSEPATransfer leaves this field empty.

Changes made:

Updated SendSEPATransfer::createRequest() to extract the from the provided PAIN XML (GrpHdr).

Initialized the $segment->summenfeld property using \Fhp\Segment\Common\Btg::create().

timrasche added 2 commits May 19, 2026 14:28
…ch transfers

When initiating a SEPA batch transfer (Sammelüberweisung) using the HKCCM or HKCME segments, some strict bank servers (e.g., Atruvia data centers for Volksbanken/Raiffeisenbanken) reject the request with the error:
HIRMS:5:2:3+9010::Summenfeld nicht vorhanden.

While some banks parse the total sum directly from the PAIN XML payload, others strictly enforce the HBCI specification, which requires the control sum to be explicitly declared in the segment parameters (e.g., HKCCM:3:1+...). Currently, SendSEPATransfer leaves this field empty.

Changes made:

Updated SendSEPATransfer::createRequest() to extract the <CtrlSum> from the provided PAIN XML (GrpHdr).

Initialized the $segment->summenfeld property using \Fhp\Segment\Common\Btg::create().
Removed an extra blank line to comply with the project's coding standards.
@timrasche
Copy link
Copy Markdown
Contributor Author

Issue #558

@timrasche
Copy link
Copy Markdown
Contributor Author

One of my clients - an Atruvia credit institution user - reports that the patch works

@nemiah
Copy link
Copy Markdown
Owner

nemiah commented May 19, 2026

Sounds and looks good to me, any comments?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants