I'm trying to make a barcode scanning application for a client and need to differentiate between ISBN and UPC/EAN.
I originally thought ISBN numbers were between 10 or 13 characters long and UPC/EAN were 12 digits long, but reading further the new EAN numbers are 13 digits long!
Since im using 2 API's one for books and one for products i dont want to use all the API requests searching both of them i need a way to differentiate between the two?
I have noticed that on the actual scanning application once the item is scanned it shows weather its a product or book, but i cannot access that part of the scanner as i'm using intel XDK and using the barcode scanner plugin.
Does anyone have any answers on how to use php to find out if the code number is a ISBN or UPC/EAN?