AbcAeffchen / Sephpa

PHP class to create SEPA xml files for credit transfer and direct debit
GNU Lesser General Public License v3.0
71 stars 31 forks source link

Not possible to combine FRST and RCUR in one batch #31

Closed ME-at-GH closed 3 years ago

ME-at-GH commented 4 years ago

$directDebitFile = new SephpaDirectDebit($initator_name , $message_id , SephpaDirectDebit::SEPA_PAIN_008_001_02 , $collectionData);

Based on my analysis, I was not able to merge the two sepa types FRST and RCUR in one file.

The $directDebitFile is expecting 4 parameters, and is dependent on $collectionData (array). The $collectionData expects seqTp. When you have two different seqTp, and defined two directDebitFile classes, only one seqTp is being saved in the xml batch.

The workaround is saving FRST and RCUR in two seperate files (works). Which is not user friendly and sensitive to errors.

I'm using the version 2.0, as this version supports DD 80102 Thanks a bunch for making this solution possible!

AbcAeffchen commented 3 years ago

Sorry for the very late response. This behavior was changed back a few month ago, so multiple different sequence types in one file should be possible again using the current master or version 2.0 (tagged tomorrow).