-
Notifications
You must be signed in to change notification settings - Fork 23
Description
Hi There,
I'm posting this issue here, as I get the feeling that this is now the main repository for this library.
Although the error messages below refer to the original package, I think the issue still stands as the line of code has not changed in your repository.
Could you please check and verify that the maximum amount of characters for postalcodes is 8, instead of the 40 that you check on in your class;
tijsverkoyen/bpost/Bpost/Order/Address.php
public function setPostalCode($postalCode)
{
$length = 40;
if (mb_strlen($postalCode) > $length) {
throw new Exception(sprintf('Invalid length, maximum is %1$s.', $length));
}
$this->postalCode = $postalCode;
}We received this error when we passed in a value, longer then 8.
TijsVerkoyen\Bpost\Exception: Uncaught exception 'TijsVerkoyen\Bpost\Exception' with message 'Error in request: cvc-maxLength-valid: Value '123456789012' with length = '12' is not facet-valid with respect to maxLength '8' for type 'PostalCodeType'.
Thanks for your work on this!