Fix: Add missing control sum (Summenfeld) to HKCCM/HKCME for SEPA batch transfers#560
Open
timrasche wants to merge 2 commits into
Open
Fix: Add missing control sum (Summenfeld) to HKCCM/HKCME for SEPA batch transfers#560timrasche wants to merge 2 commits into
timrasche wants to merge 2 commits into
Conversation
…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.
Contributor
Author
|
Issue #558 |
Contributor
Author
|
One of my clients - an Atruvia credit institution user - reports that the patch works |
Owner
|
Sounds and looks good to me, any comments? |
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.
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().