dmitrirussu / php-sepa-xml-generator

SEPA SDD XML Generator recommended to see. PHP SEPA XML Generator, (Single Euro Payments Area ISO20022 SDD V1_0 20122009) (SEPA)(PHP5)
https://github.com/dmitrirussu/PHP-SEPA-XML-GENERATOR
MIT License
53 stars 36 forks source link

Not really requiered BIC #15

Closed PhoneixS closed 10 years ago

PhoneixS commented 10 years ago

A validation for a transaction is that it must have a valid BIC. But it isn't required in national transactions after 1 February 2014.

From http://www.europeanpaymentscouncil.eu/index.cfm/sepa-credit-transfer/iban-and-bic/:

Article 5 (7) of the SEPA Regulation states: "After 1 February 2014 for national payment transactions and after 1 February 2016 for cross-border payment transactions, PSPs shall not require PSUs to indicate the BIC of the PSP of a payer or of the PSP of a payee."

I think that this validation must be removed or changed to let you to not specify a BIC. For example in SEPA/DirectDebitTransaction->checkIsValidTransaction() remove || !$this->getBIC().

dmitrirussu commented 10 years ago

Thanks I did an update

PhoneixS commented 10 years ago

Thanks for the fast fix.

PhoneixS commented 10 years ago

Well, I have found that this can be more complex that I think before.

To not specify the BIC I have found that you can do two things:

I have send a test file with the second option to see if it is validated correctly by the bank.

I have found this links that explain it in more detail:

dmitrirussu commented 10 years ago

Hi, I'm using, ISO20022 SDD V1.0, 20122009, I did some changes which you provide me, let me know if your bank accept, on SEPA more things depend of the bank.

Thanks