Jul 7, 2021
EAN13 accepts a string which contains 12 digits instead of 13. The last digit is a checksum and will be generated automatically. If your input is a 13 digits string, the last digit will be ignored.
Hope this answers your question. Let me know if you are still have some doubts on this.