php-sepa-xml-generator icon indicating copy to clipboard operation
php-sepa-xml-generator copied to clipboard

Bic Optional

Open roke22 opened this issue 8 years ago • 2 comments

Hello,

In the example you said that the Debit Bic is optional ( ->setDebitBIC('AABAFI22') //Optional ) but if we leave it blank we get in the xml this:

<DbtrAgt><FinInstnId><Othr><Id>NOTPROVIDED</Id></Othr></FinInstnId></DbtrAgt>

How to make really optional?

Best Regards.

roke22 avatar May 17 '17 07:05 roke22

Hi,

For as far as I know, some banks require the tag and others don't. This is the expected behavior of this script.

You don't need to set the BIC code, but then the script will put NOTPROVIDED in the XML for compatibility.

Best Regards, Ramon

RamonSmit avatar May 22 '17 06:05 RamonSmit

Is there any method to obtain the BIC code using IBAN? If there is no method with this library do you use any API or service to generate it? Thank you!

ericsala avatar Sep 24 '19 10:09 ericsala