nemiah / phpFinTS

PHP library to communicate with FinTS/HBCI servers
MIT License
131 stars 40 forks source link

Sammelüberweisung possible? #354

Closed witschko closed 2 months ago

witschko commented 2 years ago

Hello everybody,

first of all thank you for this great library, implementing things were a charm!

I have a question regarding "Sammelüberweisungen". I was thinking that it is possible by adding multiple creditors to the SEPA Transfer but it isn't working. How would I do that?

Regars Philipp

Cugar15 commented 2 years ago

Hi, can you supply any more information about what is not working or symptoms of the problem?

witschko commented 2 years ago

I try to execute a SEPATransfer by adding multiple creditors but the request throws an error:

FinTS errors:\n9050 (global): Die Nachricht enthält Fehler.\n9010 (wrt seg 3): Mehr als ein Posten im Einzelauftrag vorhanden.

IIRC I've tried the same thing with the same bank some months ago and it has been working but I'm not 100% sure.

According to the code of SEPATransfer class it is able to handle multiple creditors?

ampaze commented 2 years ago

Hi @witschko

Sammelüberweisungen is not currently supported.

If you want to try to add support, you would need to implement the "HKCCM" Segment and in SendSEPATransfer.php add a check for the number of SEPATransfers in the XML.

Have a look at HKCCSv1.php for the Einzelüberweisung and at SendSEPADirectDebit.php for how I did it for Lastschriften.

witschko commented 2 years ago

Hey @ampaze

ok...thank you very much for the explanation. I'll have a look into the HKCCM and see what I can do.

carli2 commented 2 years ago

see https://github.com/nemiah/phpFinTS/pull/366

if you want to use it NOW, you can alternatively use the following fork: https://github.com/LaunixPeter/phpFinTS

witschko commented 2 years ago

see #366

if you want to use it NOW, you can alternatively use the following fork: https://github.com/LaunixPeter/phpFinTS

Thank you very much...i'll have a look at it