Closed Noaber closed 6 years ago
Thanks for the suggestion @Noaber!
Do you mind to create a PR doing that? And run the phpunit test (update the test if necessary) once done
Probably, it will be better to create a new method or rename the existing method to something different like cleanAddress()
Thanks
BTW @Noaber What's the VAT number you used where you got commas?, so I can reproduce it (because in my case, I don't get commas).
I will check it after my vacation 😉
Perfect @Noaber! I will keep it open then. Enjoy your vacation! 🌴😃
Hi again @Noaber How was your vacation? Did you have the chance to see with what VAT number you have seen the commas in the address?
Hello @pH-7 ,
It was great! Will check on monday, back @ work then :)
👍 Beautiful! Thx!
Took some more time then expected :) but I am trying with number NL004206034B01
$vat_validator = new Validator(new Europa, $vat_nr, 'NL');
This gives me , NIJVERHEIDSSTRAAT 00041, 7461AD RIJSSEN,
Thanks @Noaber! I can see it doesn't normally have commas, as officially shown at http://ec.europa.eu/taxation_customs/vies/ I will publish a patch for it.
When requesting the address, it's starting / ending with a comma. Probably the $this->oResponse->address starts with a newline
Maybe add a trim or something in the removeNewLines
return trim(str_replace(["\n", "\r\n"], ', ', $sString), ', ');