Closed yakhyomus closed 1 year ago
Hi, it believe is because 4780000000000
is not valid EAN13 - the exception says it all InvalidCheckDigitException
Your 4780000000000
is not valid, check digit is 7, therefore 4780000000007
is valid EAN13.
You can calculate online for example on https://www.gs1.org/services/check-digit-calculator or use some formulas that can be found on internet.
Yep, JanMikes is right. It is not a valid EAN13 number. You can create a Code128 barcode if you really want 4780000000000 in the barcode. But it is not valid if you want EAN13.
When i'm trying like this:
$generator->getBarcode('478000000000', $generator::TYPE_EAN_13)
with 12 numbers all is good, but when i'm trying with 13 numbers:$generator->getBarcode('4780000000000', $generator::TYPE_EAN_13)
i got error:Whats wrong? Can somebody help me pls? Thank yout!