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

UltimateDebtor Name and Identification in CreditPayement 001_001_03 #26

Closed jmbIFR closed 4 years ago

jmbIFR commented 4 years ago

The French public administrations having a bank account in the Trésor Public must advise the UltimateDebtor Name and Identification.

In CreditPayement 001_001_03, the UltmtDbtr markup inside the CdtTrfTxInf (creditTransfertInformation) markup shoul be like 

      <CdtTrfTxInf>
        ...
       <UltmtDbtr>
          <Nm>$payment['ultmtDbtr']</Nm>
          <Id>
            <OrgId>
              <Othr>
                <Id>$payment['ultmtDbtrId']</Id>
              </Othr>
            </OrgId>
          </Id>
        </UltmtDbtr>
    </CdtTrfTxInf>

The ultmtDbtrId array key is added in the in the addPayment function $creditTransferFile->addPayment([ ... 'ultmtDbtr' => 'Debitor Name', 'ultmtDbtrId'=> 'Debitor real iban' ]);

ultmtDbtrId array key need an sephpa and sepautilities update. check :

https://github.com/jmbIFR/Sephpa/commit/6cfe50d042e085e88ae29aa0f30aa5cf62935e38 https://github.com/jmbIFR/SepaUtilities/commit/c8fee55f2aa1c795c1338c0573c8fdab0dd372d5