Closed Detsieber closed 1 year ago
This structure is already implemented in the pain.008.003.02 with Address (EBICS-3.0)
and pain.008.001.02.CH.03 (CH-DD)
(in addition pain.008.003.02 (EBICS-3.0 RCUR/CH)
) formats. Have you tried those?
But I understand that you want a mixed mode format, which we have tried to avoid. Our approach was mostly to have different creditors for Swiss people, and/or generally people from abroad.
In all use cases I can imagine, we won't have different contribution pages for people from Switzerland. Therefore, all SEPA mandates have to be processed by the same sepa creditor, using the same PAIN format.
I don't see any reason why we shouldn't do so?
I don't see any reason why we shouldn't do so?
One of the reasons we wanted to separate, is that you then have to force all donors to give an address, even though it's just needed for the swiss donors.
...and I'm not sure that your mixed file would be valid XML (according to the XSD), but I might be wrong....
The address will be generated only, if $contribution.ctry eq 'CH'.
Anyhow, I just patched the affected production system, and we will see...
@Detsieber Could you please file your patch as a PR for a new separate format.
@jensschuppe I still don't think it would be necessary to create a new format, for the following reasons:
Re 4. You may refer to 1e79bdcd39882102aade25edff7a3c3b0e6dd33f for hints on what needs to be done for adding new formats, in short:
templates/Sepa/Formats/
with an appropriate nameFormat.php
, transaction-details.tpl
, transaction-header.tpl
and transaction-footer.tpl
inside that directory (possibly copying from the existing format you wanted to adjust - make sure to adjust the class name in Format.php
)I'm closing this question issue as fixed, please continue commenting in your PR (#654), if necessary.
SEPA is supporting direct debits from debitor accounts in Switzerland. However, in these cases, other than in any other country, the postal address of the debitor has to be added.
This was already implemented in "pain.008.003.02 (EBICS-3.0 RCUR/CH)".
Therefore, in "pain.008.001.02 without BIC and CdtrSchmId:Nm", directly after
<Nm>{$contribution.display_name}</Nm>
the following code has to be inserted
After our ongoing test is completed, I will add a pull request.