Project60 / org.project60.sepa

SEPA direct debit integration with civicrm
19 stars 46 forks source link

PAIN file format 008.001.02 not standards-compliant #589

Closed jensschuppe closed 4 years ago

jensschuppe commented 4 years ago

The pain_008_001_02 template does not seem to be standards compliant regarding the following section:

<CdtrSchmeId>
  <Nm>{$creditor.name}</Nm>
  <Id>
    <PrvtId>
      <Othr>
        <Id>{$creditor.identifier}</Id>
        <SchmeNm>
          <Prtry>SEPA</Prtry>
        </SchmeNm>
      </Othr>
    </PrvtId>
  </Id>
</CdtrSchmeId>

A validating bank claims the following error:

Unexpected element "Nm" from the namespace "urn:iso:std:iso:20022:tech:xsd:pain.008.001.02".

The specification's example implementation here (Overview page) does not include such an element at that position.

The element should thus be removed from the template, I guess.

@bjendres what do you think?

tttp commented 4 years ago

According to this xsd, your bank is wrong and civisepa is right

https://wiki.xmldation.com/@api/deki/files/671/=pain.008.001.02.xsd

<xs:complexType name="PartyIdentification32">
    <xs:sequence>
        <xs:element maxOccurs="1" minOccurs="0" name="Nm"

type="Max140Text"/> <xs:element maxOccurs="1" minOccurs="0" name="PstlAdr" type="PostalAddress6"/> <xs:element maxOccurs="1" minOccurs="0" name="Id" type="Party6Choice"/> <xs:element maxOccurs="1" minOccurs="0" name="CtryOfRes" type="CountryCode"/> <xs:element maxOccurs="1" minOccurs="0" name="CtctDtls" type="ContactDetails2"/> </xs:sequence> </xs:complexType>

On Tue, 11 Aug 2020 at 11:04, jensschuppe notifications@github.com wrote:

The pain_008_001_02 template does not seem to be standards compliant regarding the following section:

{$creditor.name} {$creditor.identifier} SEPA

A validating bank claims the following error:

Unexpected element "Nm" from the namespace "urn:iso:std:iso:20022:tech:xsd:pain.008.001.02".

The specification's example implementation here https://www.ebics.de/fileadmin/unsecured/anlage3/anlage3_bsp/pain.008.001.02.xml (Overview page https://www.ebics.de/de/datenformate/ergaenzende-dokumente) does not include such an element at that position.

The element should thus be removed from the template, I guess.

@bjendres https://github.com/bjendres what do you think?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Project60/org.project60.sepa/issues/589, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAA7LKRRO4YMWTQIZIXIM7TSAECS3ANCNFSM4P2Z5FTQ .

jensschuppe commented 4 years ago

@tttp Thanks, that's indeed correct. Should've checked the schema before. The official XSD file can be downloaded here: https://www.iso20022.org/message/14451/download.

wintermoor commented 2 years ago

GLS (and maybe other Volksbanken in Germany) have this issue, too.

Deleting line 44 in SEPA-xml manually will help. To get this fixed in CiviSEPA, please delete line 32 in transaction-details.tpl at /civicrm/ext/org.project60.sepa/templates/Sepa/Formats/pain_008_001_02_OTHERID (Create a new file format for this, because otherwise an update will erase it.)